How to uninstall NetBeans?

  • FredN

    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?

  • Answers
  • Anwar Shah
    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.

  • Anwar Shah

    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 :

  • RolandiXor

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

  • Anwar Shah

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

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

  • Anwar Shah
    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.

  • Related Question

    Ugly fonts in Netbeans - How can i make it use the system font?
  • javiervd

    I'm having problems getting the Netbeans font to look nice, this has been a problem ever since I tried Ubuntu ~8. For some reason fonts look like they're not getting subpixel smoothing in Netbeans only, for the rest of the applications they look perfect.

    Look at how ugly the screenshot is:

    enter image description here

    It's not just the code area but every font in the application looks this way. I was looking around and apparently adding the following line to the .bashrc file should fix the issue but in my case it didn't:

    export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd'

    It think it might only affect Java based applications, but I haven't been able to test another Java app to check the fonts out.

    Does anyone know what can I do to fix this? How can I make Netbeans use the system font? Thanks in advance!

  • Related Answers
  • nem75

    As has been stated in the comments, this is a problem with Java Swing apps on Linux. Swing does use Gnome's font smoothing settings (deactivated, greyscale or subpixel) - it disregards the hinting settings though. It always uses full hinting, and if you're running Ubuntu with little or no font hinting (as most people do since little hinting is the default setting) this will make the font appear significantly different than in other applications. SWT applications like Eclipse are fine, but if you like Netbeans this isn't gonna help you.

    Caveat: For the following workaround I'm only talking about the editor font, because in an IDE that's what's important to me. You could also apply it to the menu fonts etc, but that might be a little over the top.

    The only usable solution I found here somewhere on the web (would love to link the page, but I cannot find it): use Fontforge to edit your editor font of choice and remove all hinting information from the font itself, then save it as a new font and use that in Netbeans.

    1. sudo apt-get install fontforge
    2. Launch Fontforge
    3. Open your font of choice
    4. Ctrl + A to select all characters
    5. Hints -> Clear instructions
    6. Ctrl + Shift + F to open the font info
    7. Rename font (e.g. to original name + '_nohints')
    8. Save edited font in the .fonts directory in your home
    9. Clear font cache fc-cache -rv
    10. Run Netbeans and use the font you created as editor font

    No, not perfect and yes, a bit of a hassle, but still a world of difference. Hope that helps.

  • Hanynowsky


    --laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd


    -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd --laf Metal

    to the file : netbeans.config. You can find it in $NETBEANS_HOME/etc/ folder. Make your application font smaller from system preferences.


  • Pisu

    It's not so bad that font..

    However, this is a Java application and as a particular way of handling fonts.

    If you want only to change font size, you can start Netbeans with "--fontsize" parameter:

    netbeans --fontsize 12

    If you want change the font type, it is a bit more hard changing environment parameters, and this article explains very well:

    This is for ArchLinux but I think it will work also in Ubuntu as Java is a universal software.

  • Caner

    I had the same issue on Ubuntu 12.04 and Netbeans 7.2.

    I tried adding -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd to the netbeans.conf but it did not solved the problem.

    Then I saw the issue comment regarding the line height at Netbeans bug 215785. Setting the editor line height to 1.0 along with AA settings to netbeans.conf solved my problem.

  • Chris Holt

    I know this is an old question, but in my quest for the same problem, I tried all the tricks here without luck. I thought I was just going to have to live with terrible text in netbeans.

    Then I found this:

    Basically: Ubuntu 13.10, Netbeans (7.3), Infinality font patches to freetype, OpenJDK7, and patches to it to fix Swings dismal font handling. And it "just worked"!!!

    Copied here in case that link dies:

    (1) install freetype $ sudo apt-get install libfreetype6

    (2) install infinality patch $ sudo add-apt-repository ppa:no1wantdthisname/ppa $ sudo apt-get update $ sudo apt-get install fontconfig-infinality

    I had to do the following afterwards: $ sudo rm /etc/fonts/conf.avail/52-infinality.conf $ sudo ln -s /etc/fonts/infinality/infinality.conf /etc/fonts/conf.avail/52-infinality.conf

    To use Windows 7 like font rendering do the following: $ sudo /etc/fonts/infinality/ setstyle win7 Set USE_STYLE to "WINDOWS7" in /etc/profile.d/

    (3) install font fixed OpenJDK

    $ sudo add-apt-repository ppa:no1wantdthisname/openjdk-fontfix $ sudo apt-get update $ sudo apt-get install openjdk-7-jdk

    In .../etc/netbeans.conf,

    netbeans_default_options includes: -J-Dawt.useSystemAAFontSettings=lcd and -J-Dsun.java2d.xrender=true"

    and set netbeans_jdkhome="/usr/lib/jvm/java-1.7.0-openjdk-amd64"

    This changed my Netbeans fonts from 1990's acceptable to modern day awesome. And I can now use the Inconsolata as my Netbeans editor font and it looks GREAT.

  • talsibony

    Just saw this posts and tried to fix my fonts problem, I had also issue, I could choose only 4 fonts all were lame, and wondered what happened that netbeans give only 4 fonts to choose from and also lame font chooser box, I am a big fan of netbeans and I knew I can find solution here.

    any way I followed all possible guid. I use Ubuntu 13.10 and netbeans 7.3 (yes I love the unstable stuff)

    1. create .font folder in my user folder.
    2. copied all fonts I had to that folder.
    3. added the following line to the netbeans.conf file

    find it by running:

    locate netbeans.conf

    edit it and added the following inside the quotes as suggested above

    -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd --laf Metal
    1. run netbeans update which I think did the magic now I have beautiful font chooser and have more fonts to choose then code to write (unfunny joke).

    I hope it will help you.

  • R. Oosterholt

    The anti-aliasing of the fonts are not working correctly in Ubuntu Java Swing applications.


    -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd

    to netbeans.config at the end of the netbeans_default_options string.

    You can find the config file in the $NETBEANS_HOME/etc/ folder (e.g. /home/<user_name>/<neatbeans_folder>/etc/netbeans.conf)


    netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd"
  • demonige
    gsettings set org.gnome.desktop.interface font-name 'Ubuntu 10'
    sh /home/xxx/netbeans-7.2/bin/netbeans &
    sleep 5
    gsettings set org.gnome.desktop.interface font-name 'Ubuntu 11'
  • Ryan Naddy

    I was able to do this like so (I am using Ubuntu 12.10, worked on Ubuntu 13.04 as well):

    Step 1 (This probably works in all Ubuntu versions):

    First I cleaned up the menus using this plugin Tools -> Plugins -> Settings -> Add:

    Once that location is added, you need to install the plugin, by searching for Java Ayatana (the description will be in Spanish). This will make the top and context menu the same as the OS.

    Step 2 (I don't know if this will work in all Ubuntu versions):

    Next you probably want the projects fonts too look nicer, what I did to fix that was run this in the terminal: sudo apt-get install gnome-tweak-tool I launched it and chose a different default font Now Netbeans looks pretty!

    Here is a screenshot:

    enter image description here

  • Alan B. Dee

    I was having the same issue on Mint 12. I solved it by entering the "Advanced Settings"->"Fonts" and reducing the default font from 11 to 10. I lowered all the fonts in the list to consistency.

    There must be some problem with the Cantarell 11 font.