How to Install Netbeans on Debian 9

Install Netbeans on Debian 9

Netbeans is a most popular cross-platform IDE (Integrated Development Environment) supports programming languages like Java, PHP, C, C++, Python, etc. for building applications. Netbeans is a fully featured IDE which comes with a lot of cool features like syntax highlighting, code refactoring, code generation, etc. You can also extend its features by using plugins. In this tutorial, you are going to learn how to install Netbeans on Debian 9.


Before you start to install Netbeans on Debian 9. You must have the non-root user account on your system with sudo privileges.

Install Snappy Package Manager

Snappy provides better package management support for Debian 9. It’s quick and easy to use. To install Snappy package manager type following command. If its already installed on the system skip to next step:

sudo apt install snapd snapd-xdg-open

Install OpenJDK on Debian

Now follow below instructions to install Netbeans on Debian 9:

Netbeans requires Java 8 or higher version installed on your system. Run the following command to check if Java installed on your system. If it’s installed, you will see java version otherwise you will get command not found error:

java -version

If java is not installed on your system the run following command to update package manager index:

sudo apt update

Now install OpenJDK 8 package by using following command:

sudo apt install openjdk-8-jdk

Now confirm the installation using the following command:

java -version

The output should be:

openjdk version "1.8.0_191"
OpenJDK Runtime Environment
OpenJDK 64-Bit Server VM

Install Netbeans on Debian

Here we will use the snappy package management system to install Netbeans on Debian:

To download and install Netbeans on Debian 9 you can run the following command:

sudo snap install netbeans --classic

After completing the download and the installation process you can see the following output:

netbeans 10.0 from 'apache-netbeans' installed

Start Netbeans IDE

You can start Netbeans IDE by using following command in the terminal:


Otherwise you can start it by visiting Applications -> Netbeans like given below:

You will see the following screen on starting NetBeans:

How to install Netbeans - Home screen
How to install Netbeans – Home screen


You have successfully learned how to Install Netbeans on Debian 9. If you have any queries regarding this then please don’t forget to comment below.