How to Install Netbeans on Ubuntu and Other Linux

In this tutorial, you’ll learn various ways to install Netbeans IDE on Ubuntu and other Linux distributions.

NetBeans is an open source integrated development environment that comes with good cross-platform support. This tool has been recognized by the Java and C/C++ development community widely.

The development environment is quite flexible. You can configure this tool to support a wide array of development objectives. Practically, you can develop Web, Desktop and Mobile Applications without leaving this platform. It’s amazing, isn’t it? Besides this, the user can add a wide array of known languages such as PHP, C, C++, HTML, Ajax, JavaScript, JSP, Ruby on Rails and the list goes on and on!

If you are looking to install Netbeans on Linux, you have several ways to do that. I have written this tutorial primarily for Ubuntu but some installation methods are applicable to other distributions as well.

Installing Netbeans IDE on Ubuntu using Apt package manager

If you search for Netbeans in Ubuntu Software Center, you’ll find two Netbeans available. The Apache Netbeans is the snap version which is bigger in download size but gives you the latest Netbeans.

You can install it in one click. No need to open terminal. Easiest way.

Apache Netbeans Ubuntu Software Center
Apache Netbeans in Ubuntu Software Center

You may also opt for using the apt command but with apt version, you won’t get the latest Netbeans. For example, at the time of writing this tutorial, Ubuntu 18.04 has Netbeans version 10 available via Apt while Snap has the latest Netbeans 11.

If you are a fan of apt or apt-get, you can enable the universe repository and install Netbeans using this command in the terminal:

sudo apt install netbeans

Installing Netbeans IDE on any Linux distribution using Snap

Install Netbeans Linux

Snap is a universal package manager and if you have enabled Snap on your distribution, you can install it using the following command:

sudo snap install netbeans --classic

The process might take some time to complete because the total download size is around 1 GB. Once done, you will see the app in the application launcher.

Not only you’ll get the latest Netbeans with Snap, the installed version will be automatically updated to the newer version.

Installing Netbeans using Flatpak

Flatpak is another universal packaging like Snap. Some distributions support Flatpak by default while you can enable Flatpak support on others.

Once you have the Flatpak support on your distribution, you can use the following command to install Netbeans:

flatpak install flathub org.apache.netbeans

Alernatively, you can always download the source code of this open source software and compile it yourself.

Hopefully, you selected one of the above methods to install Netbeans on your Ubuntu Linux system. But which one did you use? Did you face any issues? Do let us know.

Srimanta

Srimanta Koley

Srimanta is a passionate writer, a distrohopper & open source enthusiast. He is extremely fond of everything related to technology. He loves to read books and has an unhealthy addiction to the 90s!

About the author
Community

Community

Written by a community member, a reader who is not part of the It's FOSS writing team. The views and opinions expressed are those of the authors and do not necessarily reflect that of It's FOSS.

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.