3 Ways to Install NetBeans IDE on Ubuntu 22.04 or 20.04 LTS

Learn the steps to install NetBeans IDE on Ubuntu 22.04 Jammy JellyFish or Ubuntu 20.04 Focal Fossa LTS using command terminal.

Apache NetBeans is an open-source IDE for building Java applications and programs. It is a modular IDE that can extend its functionality using plugins. The name NetBeans generally refers to the development environment, the NetBeans IDE. However, it initially refers to a framework for simplified programming of Java applications using Swing widgets. This also includes the development environment.

As a Java program, the NetBeans IDE can be used on all platforms for which a compatible Java Virtual Machine (JVM) is available. Functionality can be flexibly extended through end-to-end modularization. Several different packages allow direct installation of the NetBeans IDE with appropriate plugins for different applications. For example, modules can be used to adapt support for other programming languages, integrate them into existing version control systems, and extend the development environment at will.

Here are some features:

Open source and free to download and use on Windows, Mac and Linux.
With NetBeans, you have integrated two server environments with GlassFish and Apache Tomcat.
Plugin support to extend functions
Developers can use various programming languages, such as B. Ruby, Rails, Java, JavaScript, PHP, HTML5, CSS, and Grails, which are available.
Drag and drop support
NetBeans’ interface is easy to use, and it’s more organized and clearer.

Steps to Install Apache NetBeans on Ubuntu 22.04 or 20.04

There are three easy ways to install Apache NetBeans IDE, one is using SNAP package manager, and the other is Flatpak and downloading its Debian binary. Here we show you everything.

#1st method using the SNAP:

1. Update Ubuntu 22.04 or 20.04

To install all the latest security and package updates available for your system; run the given command once:

sudo apt update && sudo apt upgrade

2. Use Snap to install NetBeans IDE

The easiest way to install the latest version of NetBeans on Ubuntu 22.04 or 20.04 is to use the default universal package manager which is SNAP.

sudo snap install netbeans

#2nd method using the script

3. Download NetBeans on Ubuntu 22.04 or 20.04

Those who don’t want to use the SNAP Package Manager can manually download the IDE installer. For this visit the Apache NetBeans download page and get the Debian binary available for NetBeans.

4. Configure OpenJDK

Well, there are two types of binaries, one with JDK 18 and one without. Here we use the one which is not without the JDK. Therefore, we have to manually install the default OpenJDK, i.e. Java 11. You can also install other versions of Java if you want to use them.

sudo apt install default-openjdk

5. Install Netbeans on Ubuntu 22.04 or 20.04

After downloading, move to the Downloads directory because everything we get using the browser goes there by default.

cd Downloads

Now use the DPKG command to install the NetBeans binary.

sudo dpkg -i apache-netbeans_*_all.deb
Install Apache NetBeans on Ubuntu 22.04 or 20.04

# 3rd method using Flatpak

Well, many users would already have the Flatpak to install applications on their Ubuntu systems; If not, install it using the next step. For those who don’t know, it’s also a universal package manager to install open source software on all popular Linux systems.

6. Install Flatpack

Unlike Snap, Flatpak is not available on Ubuntu 22.04 or 20.04, therefore, to use it, of course, we must first install the same. Run the commands below and with the help of APT package manager, Flatpak will be on your system.

sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

7. Use Flatpak to install Netbeans

Now you would have the Flatpak installed and activated on your system. It can now be used to install dozens of applications available in its repository. However, for now, let’s focus on Apache Netbeans, run the given command and the Apache IDE open source platform will be on your system.

flatpak install flathub org.apache.netbeans

8. Launch the Apache IDE

No matter which method you used to install NetBeans on Ubuntu 22.04 or 20.04, the way to launch and use it will be the same. Go to your application launcher and search for NetBeans. When its icon appears, click to perform the same.

Launch Netbeans on Ubuntu 22.04 or 20.04
Install Apache NetBeans on Ubuntu 22.04 or 20.04

9. How to update or upgrade

Well, in the future, if there is a new version of NetBeans available that you want to install, then:

For Snap users:

Those who have used the Snap can run:

sudo snap refresh netbeans

For manual users of the Debian binary:

You need to download the Debian binary manually like we did in this article and install it using the DPKG command tool.

For Flatpak users:

If you are a Flatpak user:

flatpka update

10. Uninstall or remove NetBeans from Ubuntu 22.04 or 20.04

Well, you don’t have to always stick with Apache Netbeans. Users are always free to uninstall the IDE if needed. Therefore, if you also want to completely remove NetBeans from your system, follow the given commands according to the method you used to install it.

For Snap users:

sudo snap remove netbeans

For Manual – Debian Binary

sudo apt autoremove --purge apache-netbeans

For flat pack

flatpak uninstall --delete-data flathub org.apache.netbeans

Other Items:

⇒ Install NetBeans IDE on Debian 11 Bullseye
⇒ Command to Install Android Studio on Ubuntu 20.04 Linux
⇒ Install FreeOffice on Ubuntu 22.04 LTS Jammy
⇒ How to install Ubuntu 22.04 server on VirtualBox

Comments are closed.