Installing NetBeans IDE on Ubuntu 17.04

This brief tutorial is going to show students and new users how to easily install NetBeans IDE on Ubuntu 17.04. 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 NetBeans, please check this link.

Since NetBeans is based on Java and requires Java in order to function, you must first install Java JDK/JRE. To learn how to install Java, read the post below

Step 1: Downloading NetBeans

If you read and followed the above post, then you should have Open Java installed. Next click the link below to download NetBeans installer file.


Make sure to select the package for the correct platform. Look at the image below to give you a hint

netbeans ubuntu install

Wait for the package to download.. it should download into the Downloads folder of your home directory by default.

Step 2: Installing NetBeans

After downloading the installer package, change into the Download folder and run the commands below to make the file executable.

cd ~/Downloads
chmod +x netbeans*.sh

After running the commands above, run the commands below to begin the installation.

sudo ./netbeans-*.sh

You should then see NetBeans installation wizard started. The default choices should be just fine. You don’t have to customize too much. However, if you know what you’re doing, you can customize all you want.

netbeans install ubuntu wizard

Follow the wizard until you’re done. For some reasons, NetBeans wouldn’t work with Open Java JDK/JRE  version 9. If you run into the same issues where the installer can not find Java location, Install Open JDK/JRE version 8.

The command to install version 8 is below:

sudo apt-get install default-jre openjdk-8-jdk openjdk-8-jre

Then NetBeans installation should continue. If the installer can’t find Java location automatically, then you will have to browse to find it. The default location on Ubuntu is stored at /usr/lib/jvm/java-version

Continue and click Install to finish the installation.

After installing, launch the application and begin building great applications.



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

You must have Java installed in order to have NetBeans running. The post shows you how to also install Open Java JDK/JRE

You may also like the post below:

4 Replies to “Installing NetBeans IDE on Ubuntu 17.04”

  1. Hello,RIchard. I’ve just installed Netbeans on Ubuntu 17.04 successfully but when I try to create any Java application project, an error pops up telling that not all requested modules can be enabled. C/C++ projects work fine. Please help.

  2. java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread “main


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.