In this article, we will have explained the necessary steps to install and configure Netbeans on Ubuntu 18.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
Install Netbeans on Ubuntu
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade
Step 2. Install OpenJDK 8.
Netbeans requires Java version 8 or above to be installed to your system:
sudo apt install openjdk-8-jdk
Verify the Java version:
$ java -version openjdk version "1.8.0_192" OpenJDK Runtime Environment (build 1.8.0_192-8u191-b12-2ubuntu0.18.04.1-b12) OpenJDK 64-Bit Server VM (build 25.192-b12, mixed mode)
Step 3. Install NetBeans.
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
Step 4. Starting Netbeans IDE.
Now that Netbeans is installed on your Ubuntu system you can start it by typing NetBeans in your terminal or by clicking on the Netbeans icon (Activities -> Netbeans).
That’s all you need to do to install Netbeans on Ubuntu 18.04 Bionic Beaver. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.