Table of Contents
Install Netbeans on Ubuntu 18.04
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 Ubuntu 18.04.
Before you start to install Netbeans on Ubuntu 18.04. 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 Ubuntu 18.04. 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:
NOTE: Ubuntu may have already installed Snappy package manager.
sudo apt install snapd snapd-xdg-open
Install OpenJDK on Ubuntu
Now follow below instructions to install Netbeans on Ubuntu 18.04:
Netbeans requires Java 8 or higher version to be installed on your system. Run the following command to check if Java is installed on your system. If it’s installed, you will see java version otherwise you will get command not found error:
If java is not installed on your system the run following command to update package manager index:
sudo apt update
OpenJDK 8 package by using following command:
sudo apt install openjdk-8-jdk
Now confirm the installation using the following command:
The output should be:
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 use the snappy package management system to install Netbeans on Ubuntu:
To download and install Netbeans on Ubuntu 18.04 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
Activities -> Netbeans like given below:
You will see the following screen on starting NetBeans:
You have successfully learned how to Install Netbeans on Ubuntu 18.04. If you have any queries regarding this then please don’t forget to comment below.