Ubuntu – Where to install Netbeans


I'm planning on installing Netbeans 7.2.1 on my Ubuntu 12.10. So far I've already installed JDK 7u11 without any problems and already downloaded Netbeans from Oracle site.

My question is this: Where should I install Netbeans? Should I accept the default /usr/local/netbeans-7.2.1 or should I change this path to my /home?

I'm questioning because someone told me not to install it in the default proposed installation path because later on I’ll be more than likely to run into permissions problems down the line. Working with Netbeans I would not have permissions to write in that folder thus disabling me from adding Libraries to my projects, installing and uninstalling plugins to the IDE, and even with Glassfish server configuration.

I've googled in order to cast a light on my doubts to no avail. The only thing I found was this thread at Netbeans forum which brought even some more doubts.

Can anyone help me?

Best Answer

You don't need to run the installer using sudo and you don't need to install it in a system folder, such as /usr/local/. Just run the installer normally and choose to install it in your home directory. If you don't want the netbeans and glassfish folders cluttering up your home folder, you can install them in a sub-folder in your home folder, such as local or Library or whatever.

You will be able to run Netbeans by clicking on the launcher it creates. However, if you want to run it from the command line at all, you will need to add the Netbeans' bin folder to the system path. You can do this by opening your .bashrc file in a text editor and adding this line at the bottom (modified according to where you installed Netbeans):

export PATH=$PATH:~/netbeans-7.2.1/bin