How to Install NetBeans on Ubuntu 20.04

Install NetBeans on Ubuntu 20.04

In this article, we will have explained the necessary steps to install and configure Netbeans on Ubuntu 20.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.

Netbeans is a full-featured cross-platform IDE that helps you build applications in Java, PHP, and many other languages. NetBeans IDE offers a platform framework for Java desktop applications and an integrated development environment for developing with Java, JavaScript, PHP, Python (no longer supported after NetBeans 7), Groovy, C, C++, Scala, Clojure, and others.

Install NetBeans on Ubuntu 20.04

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 the Java Development Kit on the Ubuntu system.

NetBeans IDE requires Java 8 or later Java Development Kit installed on your system. Run the following command below to install it:

sudo apt install default-jdk

To verify the version of the installed Java development kit, run the command below:

java -version

Step 3. Install Netbeans on Ubuntu system.

  • Install NetBeans on Ubuntu using Snap

Run the following command to install Netbeans IDE:

sudo snap install netbeans --classic
  • Install NetBeans on Ubuntu using NetBeans installer script:

Navigate to the Apache NetBeans downloads page and grab the installer script for Linux:

sudo sh

Step 4. Running Netbeans IDE on Ubuntu.

Once the installation is done, NetBeans should now be available among your system applications. You will see the NetBeans launcher icon like the below screenshot. Click on the launcher button to start:

Install NetBeans on Ubuntu 20.04

That’s all you need to do to install Install NetBeans IDE on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on Install Netbeans, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.