Apache NetBeans IDE 10.0 Released — Here’s How to Install with OpenJDK on Ubuntu 16.04 | 18.04 | 18.10

Apache NetBeans 10.0 is the latest version of NetBeans IDE and if you want to learn how to install it on Ubuntu, the steps below should be a great place to start… Apache NetBeans is the open source version of the NetBeans platform which its source code was donated by Oracle to the Apache Software Foundation…

If you’re going to be developing applications based on Java and you need a great development platform to manage your codes, then you might want to start on Apache NetBeans IDE…

This brief tutorial is going to show students and new users how to easily install the community version of NetBeans IDE on Ubuntu 16.04 / 18.10 / 18.04 desktops… This post can also be applied to previous and future releases of Ubuntu.

For those who don’t know about NetBeans, it’s an open source code editor based on Java that enables anyone to develop applications for desktop, mobile, web in Java, PHP, C/C++, XML, HTML, JavaScript and many other platforms.

The layout is great, the features are many and it should allow developers to create great applications with ease.

For more about Apache NetBeans, please check this link.

Since NetBeans is based on Java and requires Java in order to function, you’ll want to install Java JDK… The open source version of JavaJDK works great, so use the steps below to install and configure it on Ubuntu…

Step 1: Install OpenJDK on Ubuntu

Run the commands below to install OpenJDK on Ubuntu desktop….

sudo apt update
sudo apt install default-jdk

That should install the latest OpenJDK on Ubuntu… my test with NetBeans and OpenJDK ran without issues….

After installing OpenJDK, run the commands below to configure it as the default JDK runtime for Ubuntu… To find out which version of JDK to run, type the commands below:

sudo update-alternatives --config java

If you have multiple versions, you’ll see OpenJDK on the list… If only OpenJDK is installed, you should see a message that there is only one alternative for Java…

There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-11-openjdk-amd64/bin/java
Nothing to configure.

Take notes of where JAVA is located…

Next, copy the installation path of your preferred JDK home. Next, open the /etc/environment file:

sudo nano /etc/environment

Add the following line, at the end of the file:


Close out and save… Then run the commands below to apply…

source /etc/environment

When you’re done, OpenJDK should be installed and ready touse…

Step 2: Downloading Apache NetBeans

After installing OpenJDK to your system, run the commands below to download Apache NetBeans 10.0… then extract the downloaded content into your home directory…

cd /tmp
wget -c https://www-us.apache.org/dist/incubator/netbeans/incubating-netbeans/incubating-10.0/incubating-netbeans-10.0-bin.zip
unzip incubating-netbeans-10.0-bin.zip -d ~/

Step 3: Configure Apache NetBeans

A new netbeans folder should be created into your home directory…

To run NetBeans, use the steps below to configure it… First, re-open the /etc/environment file…

sudo nano /etc/environment

Then add the line below into the file just below the line for OpenJDK.

export PATH=$PATH:"/home/richard/netbeans/bin/"

Replace richard with your own user account…

When you’re done, the complete environment file should look like this:

export PATH=$PATH:"/home/richard/netbeans/bin/"

Save the exit

Finally, run the commands below to apply

source /etc/environment

After applying the commands above, just type netbeans on your console to start it up…


That should start it up and you can begin customizing your environment…

Apache NetBeans Ubuntu

Start building your Java applications!

Apache NetBeans Ubuntu


Apache NetBeans Ubuntu


This post shows you how to install Apache NetBeans on Ubuntu systems… NetBeans IDE is a great application that allows to to build great applications.

You must have JavaJDK or OpenJDK installed in order to have NetBeans running.

You may also like the post below:


  1. there is a error:
    export PATH=”$PATH:/home/richard/netbeans/bin/”
    kills your Path variable
    export PATH=$PATH:”/home/richard/netbeans/bin/”
    does the trick

  2. Hi,
    I have to correct my correction for ubuntu 18.04
    your environment file should not contain any previously mentioned export Path statements.
    This results in a login loop thanks to a buggy PATH variable…
    If anyone knows how to correct the export statement keep me posted.
    For me adding :/home/richard/netbeans/bin/ to the end of the PATH=”…” statement was enough and worked fine

    1. this should work

      sudo nano /etc/profile.d/netbeans.sh

      add it to the file

      export PATH=$PATH:/home/richard/netbeans/bin/

      Run these after

      sudo chmod +x /etc/profile.d/netbeans.sh
      source /etc/profile.d/netbeans.sh

  3. Hello! I want to ask to you, do I really need to add this line in /etc/environment
    JAVA_HOME=”/usr/lib/jvm/java-11-openjdk-amd64″ and export PATH=$PATH:”/home/richard/netbeans/bin/”?
    because when I add both lines, my system experienced a login loop.

    But when I rewrite the /etc/environment file with the original lines, and I use this command to launch the netbeans from the terminal: bash -c “netbeans/bin; ./netbeans”, I can launch without problem. will there be a problem in the future?


  4. i downloaded jdk 11 and started here to download apache then terminal says:
    HTTP request sent, awaiting response… 404 Not Found

  5. i’ve installed that but there is no netbeans icon in show application part . im new to ubuntu . what should i do ? i decided to uninstall that but there were no uninstall.sh file in netbeans folder . i dont want to open netbeans with terminal So ehat should i do ?

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.