Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Since I did not install NetBeans via the Software Center (I installed it as an .sh file) I can't see an easy way of uninstalling the program.

How can I safely uninstall the program?

share|improve this question
How did you install it? – belacqua Nov 7 '11 at 20:52
I installed it with this command: chmod 777 /path/ – FredN Nov 7 '11 at 21:05
up vote 97 down vote accepted
  1. There will be a file named in /usr/local/netbeans-x.x if you installed netbeans with root privilege. If you installed it with a normal user account the netbeans-X.X folder will be in your home directory. (Here x.x refers to the version number such as 6.9 or 7.2 etc)

  2. Open a terminal and go to netbeans' installation directory using cd command. Such as cd /usr/local/netbeans-x.x.

  3. Use 'su' to become superuser (type in your root password).

  4. Then execute file with the command sh

Alternatively, You can double click on it and choose "run in terminal" option. You need to supply the password (admin user's) to do this.

share|improve this answer
Note that you only need to be root if you installed using root. Otherwise running without using su/sudo works fine. – SamStephens Apr 7 '13 at 21:45
The uninstaller wants to uninstall Tomcat too, but I want to keep it because it is used by the new installation of Netbeans I have already done. Any suggestion? – Pino Jun 25 '13 at 7:00
Now, How to uninstall it without removing my settings and apply that settings to the new version of the netBeans (eg. 7.3 or 7.4) which i want to install instead? – shgnInc Oct 9 '13 at 15:54

To uninstall the IDE:

  • Shut down the IDE.
  • In the IDE installation directory, typically in your home directory there is a directory called netbeans. Once inside it, run the uninstaller:

  • At the Summary page, click Uninstall.

  • After uninstallation completes, click Finish.

To uninstall GlassFish Server Open Source Edition 3.1:

  • Shut down the IDE.
  • Locate the application server installation directory.

      Linux     root    /usr/local/glassfish-3.1
    • In your home directory there is a director call glassfish look inside and you can find it, run the file :

  • At the Summary page, click Uninstall.

  • After uninstallation completes, click Finish.

Source here

Related Question :

share|improve this answer
What if he install netbeans with admin user account? – Anwar Shah Oct 8 '12 at 13:14

Simply dragging and dropping the from a home install folder to a terminal activates the netbeans uninstaller.

share|improve this answer

Go to ~/netbeans x.x/ and execute .

Also, if you installed glassfish or tomcat, look for their respective folders in ~/ and execute their uninstaller.

share|improve this answer

Don't get confuse with codes. Here is the simplest way to Uninstall Netbeans..

Open Files.

Select NetBeans-8.1Beta (if you are using another version then select your version)

Open Terminal (alt+ctrl+T)

Drag file to terminal window.

Uninstallation Process will be automatically intiated. :)

share|improve this answer
  1. Ok here's a more sophisticated process. Open synaptic and search for "nautilus execute". Install it.

  2. Go to /usr/local/netbeans and find the file.

  3. Upon finding right click on it. You will now see a option "execute as" in the context menu. Select that and select "root".

Thats it. Now wait for some moment and the un-installation wizard will show up. Now follow the on screen dialogue.

Note: You need to delete .nb, .netbeans, netbeans-derby etc folders from your home folder manually.

share|improve this answer

I understand this is an old post, but i came here looking for how to remove version 7 as i have 8 installed. I have found that it can be removed from the dash.

Ubuntu 14.04: Dash -> search netbeans (You should see two icons if you have two versions installed) -> right click the version you want removing, a button should appear toward the bottom of the information that says uninstall.

share|improve this answer

If you'd installed the netbeans through Ubuntu software center it is enough to use the same to uninstall it. It is a very simple process. Go to Ubuntu software center and select the select the netbeans ide and uninstall it.

If it is installed via terminal, then locate the netbean directory normally(usr/local/netbean) and run the uninstall file

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.