Linux Mint

How to Install Netbeans IDE on Linux Mint 21

NetBeans is an open-source, free, and most popular Integrated Development Environment used to build applications based on mobile, web, and desktop. Not only is the Java language supported by NetBeans but also it has extensions to run other languages like C++, PHP, C, and JavaScript.

NetBeans IDE also known as Apache NetBeans provides a powerful framework to its developers. It allows users to invent applications with the help of modules. The NetBeans IDE can run on different platforms like Linux, Windows, and macOS.

How to Install NetBeans IDE on Linux Mint 21

There are two easy approaches to installing Apache NetBeans on Linux Mint 21:

  1. Through Terminal
  2. Through GUI

i: Install NetBeans IDE Using Terminal

Installation process of NetBeans is quite easy but requires some attention.

Step 1: Update the system repository to upgrade all packages through the command:

$ sudo apt update

Step 2: NetBeans framework demands Java installation as it is a pre-requisite of it. It would be done through the mentioned command:

$ sudo apt install default-jdk

It is already installed in my system.

Step 3: Check the version to check if the installation has been done successfully with the updated version. (This step is for those who just installed JDK on system):

$ java --version

Step 4: Update the system again after installing JDK on Linux Mint 21 system so that everything can run smoothly:

$ sudo apt update

Step 5: Install NetBeans IDE
We will install NetBeans IDE using snap packages; for this remove the nosnap.pref file from the system to enable snap support:

$ sudo rm /etc/apt/preferences.d/nosnap.pref

Install snap package manager snapd on Linux Mint using the command:

$ sudo apt install snapd

Now, run the given command to get NetBeans on Linux Mint 21 system:

$ sudo snap install netbeans --classic

You can also get the installation command by visiting official Snap Store by clicking on Install button:

Launch the NetBeans IDE on your system by typing:

$ netbeans

And you will get the screen like:

ii: Install NetBeans IDE Using GUI

NetBeans IDE can also be installed on Linux Mint 21 system through the graphical user interface. For this open-up the software manager and search for the NetBeans in the search bar:

Hit on the NetBeans icon and you will get a display of it. There you will see required details about NetBeans framework and an Install button; click on it:

Once you clicked, it will start downloading:

Now you can use NetBeans on Linux Mint 21 system by clicking on the Launch button:

How to Remove NetBeans from Linux Mint 21

If you want to delete NetBeans IDE snap package from the Linux Mint 21 system, type the following command in terminal:

$ sudo snap remove netbeans

If it is installed through GUI then open the Software Manager, search NetBeans, and click on the Remove button.

Conclusion

NetBeans IDE is used to develop Java applications for mobile, desktop and web. Along with Java, NetBeans also has extensions to compile other languages such as C, C++, PHP, and JavaScript. This article has covered how to install NetBeans IDE on Linux Mint 21 system. We have mentioned two approaches i-e through terminal and through GUI.

About the author

Syeda Wardah Batool

I am a Software Engineer Graduate and Self Motivated Linux writer. I also love to read latest Linux books. Moreover, in my free time, i love to read books on Personal development.