How to change Netbeans cache directory?

Is there a way to change the NetBeans cache directory (7.0.1)?

I just change the cache / temp directories for several applications ... and one of them is NetBeans ...

+6
source share
2 answers

This doesn't seem to be possible for Netbeans 7 (unless you moved the entire userdir or created links, as suggested by @MadWizard).

Fortunately, it seems to be in Netbeans 7.1 with the new command line --cachedir : http://wiki.netbeans.org/FaqAlternateUserdir

+4
source

Quote http://platform.netbeans.org/articles/installation.html

You can’t share this directory between different Products - the cache is useless, the logs will get confused, and custom configuration modifications can be ambiguous. This is why each Product must define its own directory prefix (based on its name) and pass it to the general nbexec command (for example, using the --defaultuserdir parameter). The user can override the default value when invoking the product launcher (for example, nbweb --userdir myuserdir).

View the documentation that I have indicated. If this does not help, you can use links, i.e. create a cache directory where necessary, and then create a link in the netbeans directory structure (described on the page) that points to the prepared cache.

+1
source

Source: https://habr.com/ru/post/900919/


All Articles