Install NetBeans IDE on Ubuntu 18.04
The NetBeans platform is a framework to simplify the development of Java Swing desktop applications. NetBeans helps to install modules for the application dynamically. The reusable service feature of the NetBeans platform allows developers to focus on the logic specific to their applications. NetBeans offers different management features, such as:
1) User settings management
2) User interface management
3) Window management
4) Storage management
5) Project management
The wizard framework feature of NetBeans supports the step by step dialogs. NetBeans also offers visual libraries and integrated development tools to make the development of applications an easy job. NetBeans offers features, such as batch code analyzers, code editor, visual debugging, code converter, and more. The different modules supported by NetBeans are:
1) NetBeans Profiler
The NetBeans Profiler module helps in the monitoring of Java applications. This module helps the developers to identify the memory leak and also helps them to optimize the system speed. This module was formerly downloaded separately, but now it is integrated with the NetBeans IDE version 6.0 and higher. You can use the NetBeans Profiler module to lower the overhead of profiling a Java application and obtain runtime information by techniques, such as dynamic bytecode instrumentation.
2) GUI Design Tool
The GUI design tool module was formerly known as Project Matisse, and it enables developers to prototype and design Swing GUIs by dragging and dropping the GUI components.
In this tutorial, you can learn how to install Netbeans on Ubuntu 18.04.
Before installing Netbeans on Ubuntu, make sure that you have a non-root user account with sudo privileges on your system.
Install Netbeans IDE on Ubuntu
To install Netbeans IDE on Ubuntu, follow the below steps:
1) Install Java
Netbeans requires Java installed on the system. You can install Java on Ubuntu by running the following bundle of commands.
1) Before installing Java, we need to update the package index by running the following command.
$ sudo apt update
2) Next, run the following command to check if Java is available in the system.
$ java -version
If Java is not available in the system, it prompts the ‘command ‘java’ not found’ error.
3) To install Java OpenJDK, run the following command. This command installs the Java Runtime Environment on the system.
$ sudo apt install default-jre
4) After installation, run the following command to verify the installation
$ java -version
5) To run Java-based software, install the Java Development Kit (JDK) by running the following command.
$ sudo apt install default-jdk
6) To check which version is installed, run the following command.
$ java -version
7) To install a specific version ( OpenJDK 8), run the following command.
$ sudo apt install openjdk-8-jdk
2) Install Snappy Package Manager
NetBeans requires Java 8 or higher installed on the system, so we should make sure that Java is installed before starting the installation of NetBeans.
Snappy is a package management system and software deployment developed for the Linux operating system. The packages in the Snappy package manager are known as snaps, and the tool for using the snappy is known as snapd. The snappy package manager provides better package management support in Linux operating systems, such as Ubuntu, Linux Mint, and Debian. Snappy, when compared to other package managers, is easy and quick to use. Ubuntu may have snappy pre-installed, but if you want to install snappy, run the following command.
$ sudo apt install snapd snapd-xdg-open
3) Install Netbeans on Ubuntu 18.04
To download and install Netbeans on Ubuntu 18.04, run the following command.
$ sudo snap install netbeans –classic
After the installation, the system should show an output similar to the one shown below.
netbeans 11.1 from ‘apache-netbeans’ installed
Start Netbeans IDE
After the installation, you can start the Netbeans IDE from the command-line by running the following command.
You can also visit ‘Activities’ on Ubuntu and search for ‘Netbeans’ and click the icon to start Netbeans.