How to install Netbeans on Ubuntu 18.04

How to install Netbeans on Ubuntu 18.04

Install Netbeans on Ubuntu 18.04

Netbeans is the most popular cross-platform IDE (Integrated Development Environment), supporting programming languages ​​such as Java, PHP, C, C ++, and Python for building applications. Netbeans is a full-featured IDE with many cool features, such as syntax highlighting, code refactoring, and code generation. You can also extend the functionality with plugins. In this tutorial, you will learn how to install Netbeans on Ubuntu 18.04.


Before installing Netbeans on Ubuntu 18.04. The system requires a non-root user account with sudo privileges.

Install Snappy Package Manager

Snappy has improved package management support for Ubuntu 18.04. Quick and easy to use. To install Snappy package manager, enter the following command: If it is already installed on your system, proceed to the next step.

Note: Ubuntu may already have the Snappy package manager installed.

sudo apt install snapd snapd-xdg-open

Install OpenJDK on Ubuntu

Follow the steps below to install Netbeans on Ubuntu 18.04.

Netbeans requires Java 8 or a later version to be installed on the system. Run the following command to check if Java is installed on your system: If installed, the Java version is displayed. If not, you will get a command not found error.

java -version

If you do not have java installed on your system, run the following command to update the package manager index:

sudo apt update

Install now OpenJDK 8 Package using the following command:

sudo apt install openjdk-8-jdk

Verify the installation using the following command:

java -version

The output looks like this:

openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

Install Netbeans on Ubuntu

Here we will install Netbeans on Ubuntu using the Snappy package management system.

To download and install Netbeans on Ubuntu 18.04, you can run the following command:

sudo snap install netbeans --classic

When the download and installation process is complete, you will see the following output:

netbeans 10.0 from 'apache-netbeans' installed

Launch Netbeans IDE

You can launch Netbeans IDE using the following command in a terminal:


Otherwise, you can start from Activities -> Netbeans As below:

How to install Netbeans-Activity How to install Netbeans-Activities

The following screen is displayed when NetBeans starts.

How to install Netbeans-Home screen How to Install Netbeans-Home Screen


You learned how to install Netbeans on Ubuntu 18.04. If you have any questions about this, don’t forget to comment below.