Here we will do the installation of NetBeans IDE on Fedora 39/38/37/36/35/34. NetBeans is a very powerful Integrated Development Environment (IDE) tool mostly used for Java and C/C++ Development.
It allows you easily develop Web, Desktop and Mobile Applications from its modular framework. You can add support for other Programming Languages such as PHP, HTML, JavaScript, C, C++, Ajax, JSP, Ruby on Rails e.t.c using extensions.
Install NetBeans Dependencies
Netbeans needs Java JDK to run. Let’s begin by installing Java on Fedora system.
sudo dnf install java-17-openjdk java-17-openjdk-devel
Check version of Java installed on your system
$ java -version
openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment 21.9 (build 17.0.3+7)
OpenJDK 64-Bit Server VM 21.9 (build 17.0.3+7, mixed mode, sharing)
Download NetBeans IDE installer
We will download the latest release of NetBeans IDE installer package with wget or curl. Install if missing.
sudo dnf -y install wget curl
Download NetBeans RPM package:
### using curl ###
curl -O https://archive.apache.org/dist/netbeans/netbeans-installers/19/apache-netbeans-19-0.noarch.rpm
### Using wget ###
wget https://archive.apache.org/dist/netbeans/netbeans-installers/19/apache-netbeans-19-0.noarch.rpm
Install NetBeans IDE on Fedora
Run the script to install NetBeans.
$ sudo rpm -Uvh apache-netbeans-*.noarch.rpm
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:apache-netbeans-19-0 ################################# [100%]
Start Netbeans IDE on Fedora
Now that you have downloaded and installed Netbeans IDE, you can launch it from Desktop launcher.

Or from your terminal like below:
$ netbeans
Your Netbeans is now ready for real work.

You can install available Plugins under My NetBeans > Available Plugins and enjoy your Development.

Proceed with the installation of selected plugins.

You have successfully installed NetBeans IDE on Fedora 39/38/37/36/35 and you’re set to quickly and easily develop desktop, mobile and web applications with Java, JavaScript, HTML5, PHP, C/C++ and more.
I have a problem with procedure in the step 3:
My fedora version is the 36
francis@fedora tmp]$ sudo ./Apache-NetBeans-13-bin-linux-x64.sh
Configuring the installer…
Searching for JVM on the system…
Extracting installation data…
Running the installer wizard…
Can`t initialize UI
Running in headless mode
No X11 DISPLAY variable was set,
but this program performed an operation which requires it.
Exception: java.awt.HeadlessException thrown from the UncaughtExceptionHandler in thread “main”
i tried to execute with the DISPLAY variable, but i have the same result
[francis@fedora tmp]$ DISPLAY=:0.0; sudo ./Apache-NetBeans-13-bin-linux-x64.sh
[sudo] Mot de passe de francis :
Configuring the installer…
Searching for JVM on the system…
Extracting installation data…
Running the installer wizard…
Can`t initialize UI
Running in headless mode
No X11 DISPLAY variable was set,
but this program performed an operation which requires it.
Exception: java.awt.HeadlessException thrown from the UncaughtExceptionHandler in thread “main”
I just confirmed it requires Java 17. Try updated guide steps which includes installation of Java 17.
Java 17 is the default on Fedora 36.
$ java –version
openjdk 17.0.3 2022-04-19
OpenJDK Runtime Environment 21.9 (build 17.0.3+7)
OpenJDK 64-Bit Server VM 21.9 (build 17.0.3+7, mixed mode, sharing)
It seems you’re performing the installation on a machine without GUI, right?