Apache NetBeans is available for Windows, Linux, macOS, and Solaris.
Here, we will see how to install Apache NetBeans on Fedora 35.
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.
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.
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.
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.
Click the checkbox to accept the terms in the license agreement and then click Next.
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.
Optionally, you can allow NetBeans to Check for Updates of installed plugins. Then click Install to begin the installation.
The installation will take a while. Finally, click Finish to complete the installation.
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.