For developers looking for a great platform to manage their Java or PHP codes, Netbeans might be a great place 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, and 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 Ubuntu Linux. Ubuntu is the modern, open-source Linux operating system for desktops, servers, and other devices. To get started installing 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. Installing Java JDK 8 on Ubuntu is pretty simple. To install start by updating the package and installing OpenJDK 8. Verify the installation by typing the following command which will print the Java version installed on your system. The output should look something like this:

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 by 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: When you run the commands above, after a successful installation, you should get a similar message as the one below. Once the installation is done, you can start typing netbeans in your terminal or by clicking on the Netbeans icon from 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.