How to Install Apache NetBeans on Fedora 35

0

Apache NetBeans is an integrated development environment (IDE) for all Java application development. It also supports developing applications in other languages, such as PHP, C/C++, Groovy, JavaScript, and HTML5, with the help of plugins.

Apache NetBeans is available for Windows, Linux, macOS, and Solaris.

Here, we will see how to install Apache NetBeans on Fedora 35.

Prerequisites

NetBeans requires JAVA JDK 8 or later to be available on the system. So, you can install either OpenJDK or Oracle Java for Apache NetBeans installation.

In this post, I will use OpenJDK 11.

sudo dnf install java-11-openjdk-devel -y

Once the OpenJDK installation is complete, check the Java version with the below command.

java -version

Output:

openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment 18.9 (build 11.0.13+8)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.13+8, mixed mode, sharing)

Download Apache NetBeans

Apache Software Foundation releases Apache NetBeans IDE four times a year and you can download Apache NetBeans 12.5 (The latest version when writing this article) or Apache NetBeans 12.0 (Long Term Support) by visiting the Apache NetBeans download page.

OR

Use the following command to download the package using a terminal.

# Apache NetBeans 12.5 (Latest Version)

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

# Apache NetBeans 12.0 (LTS)

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

Install Apache NetBeans

First, set the executable permission to the installer file in order to run the Apache NetBeans installer,

sudo chmod 700 Apache-NetBeans-*-bin-linux-x64.sh

Then, run the Apache NetBeans installer.

sudo ./Apache-NetBeans-*-bin-linux-x64.sh

The Apache NetBeans installer will start the graphical installer, and you will need to follow the installer wizard.

Click Next or Customize the installation packs and runtimes on the installer welcome screen.

Apache NetBeans IDE Installer Welcome Screen
Apache NetBeans IDE Installer Welcome Screen

Click the checkbox to accept the terms in the license agreement and then click Next.

Apache NetBeans IDE License Agreement
Apache NetBeans IDE License Agreement

The installer will detect the installation folder and the location of JDK automatically. If you want, you can change the Apache NetBeans installation folder and JDK for Apache NetBeans.

Apache NetBeans IDE Installation Folder
Apache NetBeans IDE Installation Folder

Optionally, you can allow NetBeans to Check for Updates of installed plugins. Then click Install to begin the installation.

Apache NetBeans Installation Summary
Apache NetBeans Installation Summary

The installation will take a while. Finally, click Finish to complete the installation.

Apache NetBeans IDE Installation In Progress
Apache NetBeans IDE Installation In Progress
Apache NetBeans IDE Installation Completed
Apache NetBeans IDE Installation Completed

Since Apache NetBeans is installed in a custom location, it can not be launched with the netbeans command instead you will have to use the full path. To simplify the starting process, we will create a link to the /usr/bin directory so that you can start NetBeans IDE with the netbeans command.

sudo ln -s /usr/local/netbeans-*/netbeans/bin/netbeans /usr/bin/netbeans

Launch Apache NetBeans

Start the Apache Netbeans on Debian by going to Activities >> search for Apache NetBeans or running the netbeans command in the terminal.

Apache NetBeans IDE Running on Fedora 35
Apache NetBeans IDE Running on Fedora 35

Conclusion

That’s all. I hope you have learned how to install Apache NetBeans on Fedora 35.

You might also like