Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the location of the netbeans settings directory (~/.netbeans)

Tags:

netbeans

By default netbeans stores it's settings in a directory called .netbeans under the user's home directory. Is it possible to change the location of this directory (especially under Windows)?

Thanks to James Schek I now know the answer (change the path in netbeans.conf) but that leads me to another question: Is there a way to include the current username in the path to the netbeans setting directory?

I want to do something like this:

netbeans_default_userdir="D:\etc\${USERNAME}\.netbeans\6.5beta"

but I can't figure out the name of the variable to use (if there's any). Of course I can achieve the same thing with the --userdir option, I'm just curious.

like image 827
sme Avatar asked Sep 22 '08 18:09

sme


1 Answers

yes, edit the netbeans.conf file under %NETBEANS_HOME%\etc.

Edit the line with: netbeans_default_userdir="${HOME}/.netbeans/6.0"

If you need different "profiles"--i.e. want to run different copies of Netbeans with different home directories, you can pass a new home directory to the launcher. Run "netbeans.exe --userdir /path/to/dir" or "nb.exe --userdir /path/to/dir"

like image 121
James Schek Avatar answered Sep 23 '22 10:09

James Schek