Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear the cache in NetBeans

People also ask

Can you delete NetBeans Cache?

Clean the NetBeans cache You can see the path of NetBeans cache in the NetBeans menu. It will appear a page with the logo of Apache NetBeans with some system information. The User directory contains your configuration (e.g. open projects). The Cache directory contains the data that you can delete.

Where is NetBeans Cache folder?

Cache is located in C:\Users\<username>\AppData\Local\NetBeans\Cache\ .

How delete all files in NetBeans?

Go to Control Panel à Add or Remove Programs, select Apache NetBeans 12.1 and click Uninstall. Follow the steps of the uninstaller. It will delete NetBeans installation directory as well as shortcuts on desktop and Start menu.

Where is NetBeans Cache on Mac?

Go to Netbeans > About and at the bottom you can find the Cache directory.


Close NetBeans before deleting the cache.

NetBeans 7.2+, Windows 7

Cache is located in C:\Users\<username>\AppData\Local\NetBeans\Cache\.

Clear the cache using the %USERPROFILE% Windows variable:

del /s /q %USERPROFILE%\AppData\Local\NetBeans\Cache\

If it is set, you can also use the environment variable %LOCALAPPDATA%:

del /s /q %LOCALAPPDATA%\NetBeans\Cache\

NetBeans 7.2+, Linux

Cache is at: ~/.cache/netbeans/${netbeans_version}/index/

Mac OS X

Cache is at: ~/Library/Caches/NetBeans/${netbeans_version}/

See also http://wiki.netbeans.org/FaqWhatIsUserdir.

Help Menu

On Windows, selecting the Help » About menu will display a dialog that contains the following text:

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Java: 1.7.0_80; Java HotSpot(TM) 64-Bit Server VM 24.80-b11
Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15
System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Username\AppData\Roaming\NetBeans\8.0.2
Cache directory: C:\Users\Username\AppData\Local\NetBeans\Cache\8.0.2

Regardless of operating system, the About dialog will contain the correct path to the cache directory.


The path of the cache directory is listed in the About window (menu Help/About). Close NetBeans, then delete (or rename) the directory. NetBeans will rebuild its cache when it starts up.


Before 7.2, the cache is at C:\Users\username\.netbeans\7.0\var\cache. Deleting this directory should clear the cache for you.


On a Mac with NetBeans 8.1,

  1. NetBeansAbout
  2. Find User Directory path in the About screen
  3. rm -fr 8.1 In your case the version could be different; remove the right version folder.
  4. Reopen NetBeans

I'll just add that I have tried to resolve reference problems caused by a missing library in the cache, and deleting the cache was not enough to solve the problem.

I closed NetBeans (7.2.1), deleted the cache, then reopened NetBeans, and it regenerated the cache, but the library was still missing (checked by looking in .../Cache/7.2.1/index/archives.properties).

To resolve the problem I had to close my open projects before closing NetBeans and deleting the cache.


For Netbeans 7.4 and above in Linux, the cache is $HOME/.cache/netbeans/7.4.