Install NetBeans IDE on Ubuntu 22.04

|
Last Updated:
|
|

In this tutorial, you will learn how to install NetBeans IDE on Ubuntu 22.04. NetBeans IDE is a free and open source extensible Java IDE (Integrated Development Environment) that enable software developers to quickly and easily develop Java desktop, Java EE, and web applications, as well as HTML5 applications with HTML, JavaScript, and CSS. The IDE also provides a great set of tools for PHP, Ruby and C/C++ developers.

Install NetBeans IDE on Ubuntu 22.04

Install Java Development Kit on Ubuntu 22.04

NetBeans IDE requires Java Development Kit version 8 or above. In this guide, we use Java 11, which is the default available version on Ubuntu 22.04 main repos.

apt update
apt install default-jdk

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

java -version
openjdk version "11.0.14" 2022-01-18
OpenJDK Runtime Environment (build 11.0.14+9-Ubuntu-0ubuntu2)
OpenJDK 64-Bit Server VM (build 11.0.14+9-Ubuntu-0ubuntu2, mixed mode, sharing)

Install NetBeans IDE on Ubuntu

There are different methods in which you can install NetBeans IDE on Ubuntu. These include;

  1. Install NetBeans on Ubuntu using NetBeans installer script
  2. Install NetBeans from Snaps

Install NetBeans on Ubuntu using NetBeans installer script

To install NetBeaNavigate to Apache NetBeans downloads page and grab the installer script for Linux. You can simply run the command below to download it (for version 12.6).

wget https://dlcdn.apache.org/netbeans/netbeans-installers/12.6/Apache-NetBeans-12.6-bin-linux-x64.sh

Once the download is complete, then run the command below to install NetBeans IDE.

sudo sh Apache-NetBeans-12.6-bin-linux-x64.sh 

The script will launch the NetBeans installer.

  • If you want, you can customize your installation by selecting which packs and runtimes to install, by clicking Customize. Otherwise, click Next to proceed.
Install NetBeans IDE on Ubuntu 22.04
  • Accept the EULA and proceed.
  • Choose the installation path for your NetBeans application. Otherwise, click next to accept the default.
Install NetBeans IDE on Ubuntu 22.04
  • Check the installation summary and install NetBeans on Ubuntu 22.04.
Install NetBeans IDE on Ubuntu 22.04
  • Once the installation is done, click Finish to close the installation wizard.
  • Netbeans should be installed on your Ubuntu 22.04 system.

Install NetBeans from Snaps

If you need to get the latest version of NetBeans installed and running on Ubuntu 22.04, you can install it from snaps using the snap package manager.

On Ubuntu 22.04, Snapd is already installed and enabled;

snap version
snap    2.54.2
snapd   2.54.2
series  16
ubuntu  22.04
kernel  5.13.0-19-generic

Thus, ensure your system package cache is up-to-date.

apt update

Check available version of NetBeans IDE on snap;

snap find netbeans
Name      Version  Publisher         Notes    Summary
netbeans  12.6     apache-netbeans✓  classic  Apache NetBeans IDE

Next, install NetBeans using snap package manager;

sudo snap install netbeans --classic

Running NetBeans IDE on Ubuntu 22.04

In all the methods, once the installation is done, NetBeans IDE should now be available among your system applications.

netbeans ubuntu 22.04

You can thus just click it to launch it and start using it.

Install NetBeans IDE on Ubuntu 22.04

And that brings us to the end of our simple tutorial on how to install NetBeans IDE on Ubuntu.

Read more on NetBeans IDE Knowledge base.

Other Tutorials

Install NetBeans IDE on Debian 10

Install Fleet Osquery Manager on Ubuntu 20.04

Install and Setup Kolide Fleet on Ubuntu 18.04

SUPPORT US VIA A VIRTUAL CUP OF COFFEE

We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
gen_too
Co-founder of Kifarunix.com, Linux Tips and Tutorials. Linux/Unix admin and author at Kifarunix.com.

Leave a Comment