Install Netbeans 8.2 on Ubuntu 18.04

By | September 3, 2018

First you have to install OpenJDK 8 because Netbeans doesn't work with OpenJDK 11 which is installed on Ubuntu 18.04 by default.

sudo apt-get install openjdk-8-jdk

Next download here the Netbeans installer of your choice for Linux. If you chose Netbeans IDE Java SE you should get the file: netbeans-8.2-javase-linux.sh.
Now start the installer, setting --javahome to the location of OpenJDK 8 (in our case /usr/lib/jvm/java-8-openjdk-amd64/):

bash Downloads/netbeans-8.2-javase-linux.sh --javahome /usr/lib/jvm/java-8-openjdk-amd64/

When the installer asks for JDK for Netbeans IDE, again enter the location of OpenJDK 8 (/usr/lib/jvm/java-8-openjdk-amd64):

That's all. After finishing the installation you will have a Netbeans icon on your desktop which you can double click to start the Netbeans IDE. Alternatively you can start Netbeans with:

~/netbeans-8.2/bin/netbeans

Also you could have run the installer as "sudo" so you would have an installation that could be used by all users.

One thought on “Install Netbeans 8.2 on Ubuntu 18.04

  1. Pingback: How to edit OpenSeSim Source Code in Netbeans – Cauwersin.com – 7u83

Leave a Reply

Your email address will not be published. Required fields are marked *