This post shows students and new users steps to install Apache Netbeans on Ubuntu Linux via Snap package management. Apache Netbeans is a full-featured cross-platform IDE which allows anyone to build and manage applications in Java, PHP, and other computer languages.
For developers looking for a great platform to manage their Java or PHP codes, Netbeans might be a great please to start. NetBeans is much more than a text editor.
Netbeans provides a great set of tools for PHP and C/C++ developers, and enables anyone to develop applications for desktop, mobile, web in Java, PHP, C/C++, XML, HTML, JavaScript and many other platforms.
Also, for students and new users learning Linux, the easiest place to start learning is on Ubuntu Linux. Ubuntu is the modern, open source Linux operating system for desktop, servers and other devices.
To get started install Apache Netbeans on Ubuntu, follow the steps below:
How to Install OpenJDK on Ubuntu Linux
Before you can install Netbeans, you’ll need to have Java JDK or OpenJDK installed. It requires Java JDK 8 or later. For this tutorial, we’re going to be installing and using OpenJDK 8.
To install Java JDK 8 on Ubuntu pretty simple and straightforward. To install start by updating the package and installing OpenJDK 8.
sudo apt update sudo apt install openjdk-8-jdk
Verify the installation by typing the following command which will print the Java version installed on your system.
java -version
The output should look something like this:
openjdk version "1.8.0_292" OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10) OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
How to install Netbeans on Ubuntu
Now that OpenJDK 8 is installed, continue below to get Netbeans downloaded and installed on Ubuntu.
At the time of writing this article, the latest stable version of Netbeans is version 12.5. The easiest way to install Netbeans on Ubuntu is using the snappy packaging system.
Snaps are containerized software packages that are simple to create and install. Snap applications are packaged with all their dependencies to run on all popular Linux distributions from a single build which allow them to update automatically and roll back gracefully.
To install NetBeans via snap, run the commands below:
sudo apt install snap sudo snap install netbeans --classic
When you run the commands above, after a successful installation, you should get similar message as the one below.
netbeans 12.5 from Apache NetBeans✓ installed
Once the installation is done, you can start it typing netbeans in your terminal or by clicking on the Netbeans icon from the Activities -> Netbeans.
You can start building your apps using Netbeans
Conclusion:
This post showed you how to install Netbeans on Ubuntu Linux. If you find any error above or have something to add, please use the comment form below.