In this tutorial, you will learn various ways to install Netbeans IDE on Ubuntu and other Linux distributions.
NetBeans is an open source integrated development environment with good cross-platform support. This tool has been widely recognized by the Java and C/C++ development communities.
If you want to install Netbeans on Linux, there are several ways to do this. I wrote this tutorial mainly for Ubuntu, but some installation methods are also applicable to other distributions. This article tested Ubuntu 20.04.
- Use apt to install Netbeans on Ubuntu: suitable for Ubuntu and Ubuntu-based distributions, but usually install the old version of Netbeans
- Install Netbeans on Ubuntu using Snap: For any Linux distribution that has Snap packaging support enabled
- Install Netbeans using Flatpak: For any Linux distribution that has Flatpak package support
Install Netbeans IDE on Ubuntu using Apt package manager
If you search for Netbeans in the Ubuntu Software Center, you will find two available Netbeans. Apache Netbeans is a snapshot version with a larger download volume, but it can provide you with the latest Netbeans.
You can install with one click. No need to open the terminal. The easiest way.
You can also choose to use the apt command, but when you use the apt version, you will not get the latest Netbeans. For example, at the time of writing this tutorial, Ubuntu 20.04 provides Netbeans version 10 through Apt, and Snap has the latest Netbeans 12.
If you are a fan of apt or apt-get, you can use the following commands in the terminal to enable the Universe repository and install Netbeans:
$ sudo apt install netbeans
Use Snap to install Netbeans IDE on any Linux distribution
Snap is a general-purpose package manager. If Snap is enabled on the distribution, you can install it with the following command:
$ sudo snap install netbeans --classic
Or you can use Ubuntu Software Store ;
The process may take some time to complete because the total download size is approximately 1 GB. When finished, you will see the application in the application launcher.
Not only will you get the latest Netbeans with Snap, but the installed version will be automatically updated to a newer version.
Install Netbeans using Flatpak
Flatpak is another general packaging, such as Snap. Some distributions support Flatpak by default, and you can enable Flatpak support on other distributions.
After getting Flatpak support on the distribution, you can install Netbeans using the following command:
$ flatpak install flathub org.apache.netbeans
In addition, you can always download the source code of this open source software and compile it yourself.
Hope you have chosen one of the above methods to install Netbeans on Ubuntu Linux system. Please tell me which method you used and have you encountered any problems? Be sure to let us know, using the comments section.