In this article, you will learn how to install NetBeans on a Debian 11 Bullseye system via the command line environment.
Log in as root on a Debian 11 system or you must have privileges to run the sudo command.
Install NetBeans IDE on Debian 11
By following the instructions mentioned below, you can easily install NetBeans IDE on Debian 11 system:
Step 1: Install Java JDK as a required dependency
To run NetBeans IDE, you need to install Java JDK as a required package on your system. So using following command install default Java JDK version on Debian 11:
$ sudo apt update $ sudo apt install default-jdk
After the default-jdk java packages are completely installed, check the installed Java JDK version by issuing the following command:
$ java --version
Step 2: Download the Apache NetBeans binary file
Download the binary to install Apache Netbeans on Debian 11. These files are available for download on the official Apache NetBeans website. Alternatively, Apache NetBeans can be downloaded on Debian 11 Bullseye using the wget command via Terminal:
$ wget https://downloads.apache.org/netbeans/netbeans/12.0/netbeans-12.0-bin.zip
After downloading the above packages, extract the file with Terminal by running the unzip command:
$ unzip netbeans-12.0-bin.zip
Files can also be extracted via the desktop GUI.
Note: If the decompression utility is not installed on a Debian 11 system, install the decompression utility first. Otherwise, you cannot extract the file from the system.
List the file contents of the netbeans directory with the ls command as follows:
$ ls netbeans
Now move the netbeans folder including all the contents into /opt by running below mentioned command:
$ sudo mv netbeans/ /opt/
Step 3: Set the $PATH . environment variable
To set up navigation for the $Path binary environment variable that can execute netbeans, open the following file:
$ nano ~/.bashrc
More $PATH the following at the end of the current display file:
Now, source the file by running the command mentioned below:
$ source ~/.bashrc
Configure NetBeans Desktop launcher
Create a desktop launcher to run the NetBeans IDE application as follows:
$ sudo nano /usr/share/applications/netbeans.desktop
Enter the following lines in the above configuration file:
[Desktop Entry] Name=Netbeans IDE Comment=Netbeans IDE Type=Application Encoding=UTF-8 Exec=/opt/netbeans/bin/netbeans Icon=/opt/netbeans/nb/netbeans.png Categories=GNOME;Application;Development; Terminal=false StartupNotify=true
Save the above lines and close the file.
Accessing the NetBeans IDE application on Debian 11
Use the applications menu to launch the NetBeans IDE on the Bullseye Debian 11 distribution as follows:
When all the modules are loaded on the system, the following NetBeans IDE interface will be displayed on the screen:
The NetBeans IDE installation is complete on the Debian 11 Bullseye distribution. You can now use NetBeans IDE features on your system.
Using the method suggested above, you can easily install the latest NetBeans IDE on a Debian 11 or Ubuntu system.
Hope you are succesful.
Source link: How to Install NetBeans IDE on Debian 11