Install Apache NetBeans on Fedora 39 Using Snap

Install Java JD

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

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

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

java -version

Output:

openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment (Red_Hat-17.0.9.0.9-4) (build 17.0.9+9)
OpenJDK 64-Bit Server VM (Red_Hat-17.0.9.0.9-4) (build 17.0.9+9, mixed mode, sharing)

Install Apache NetBeans

First, install the Snap package management on your system.

sudo dnf install -y snapd
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install core && sudo snap refresh core

Then, install Apache NetBeans using the snap command.

sudo snap install netbeans --classic

The installation will take some time to complete. After installing NetBeans, verify the NetBeans installation using the below command.

sudo snap list netbeans

Output:

Name      Version  Rev  Tracking       Publisher         Notes
netbeans  21       93   latest/stable  apache-netbeans✓  classic

That's it!