Want to run NetBeans IDE on Debian 10 desktop? This guide will take you through how to install NetBeans IDE on Debian 10.
Install NetBeans IDE on Debian 10
Step through this guide to learn how to install NetBeans IDE on Debian 10.
Install Java Development Kit on Debian 10
In order to run NetBeans IDE, you need to have installed Java Development Kit version 8 or above. In this guide, we use Java 11, which is the default available version on Debian 10 main repos.
apt install default-jdk
To verify the version of the installed Java development kit, run the command below;
openjdk version "22.214.171.124" 2020-11-04 OpenJDK Runtime Environment (build 126.96.36.199+1-post-Debian-1deb10u2) OpenJDK 64-Bit Server VM (build 188.8.131.52+1-post-Debian-1deb10u2, mixed mode, sharing)
Installing NetBeans IDE on Debian
There are different methods in which you can install NetBeans IDE on Debian. These include;
Install NetBeans on Debian using NetBeans installer script
NetBeans provides a script that makes it installation easier. Navigate to Apache NetBeans downloads page and grab the installer script for Linux. You can simply run the command below to download it (for version 12.2).
apt install wget
Once download, execute it as follows;
sudo sh Apache-NetBeans-12.2-bin-linux-x64.sh
The script will launch the NetBeans installation wizard. Note that you need to be non-root user with sudo to run the script, otherwise you may get such an error;
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"
If you want, you can customize your installation, otherwise, click Next to proceed.
Accept the EULA and proceed.
Choose the installation path for your NetBeans application. Otherwise, click next to accept the default.
Check the installation summary and install NetBeans on Debian 10.
Once the installation is done, click Finish to close the installation wizard.
Netbeans should be installed on your Debian 10 system.
If you ever want to remove or uninstall NetBeans IDE on Debian systems installed using this method, navigate to the NetBeans install directory and execute the uninstall script.
Similarly, run the uninstall script as non root user with sudo provileges;
Install NetBeans from Snap on Debian
If you need to get the latest version of NetBeans installed and running on Debian 10, you can install it from snaps using the snap package manager.
On Debian 10, Snapd is not installed by default, hence run the command below to install it.
sudo apt install snapd
Once that is done, you need to install the
core snap in order to get the latest
snapd. But before you can install core snap, Log out of your system and re-login or simply reboot;
Once you re-login to your system, then install core snap.
sudo snap install core
snap 2.48 snapd 2.48 series 16 debian 10 kernel 4.19.0-13-amd64
Check the available version of NetBeans provided by the Snap repos;
snap info netbeans
Well, as you can see, it got the latest version of NetBeans which you can then install using snap package manager;
sudo snap install netbeans --classic
If for some reason you need to uninstall NetBeans installed from Snap, simply run the command below;
sudo snap remove netbeans
Running NetBeans on Debian 10
In all the methods, once the installation is done, NetBeans should now be available among your system applications.
You can just launch and start using it.
And that brings us to the end of our simple tutorial on how to install NetBeans IDE on Debian 10.