{"id":11402,"date":"2022-02-01T14:43:31","date_gmt":"2022-02-01T11:43:31","guid":{"rendered":"https:\/\/kifarunix.com\/?p=11402"},"modified":"2024-03-09T10:20:54","modified_gmt":"2024-03-09T07:20:54","slug":"install-netbeans-ide-on-debian-11","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-netbeans-ide-on-debian-11\/","title":{"rendered":"Install NetBeans IDE on Debian 11"},"content":{"rendered":"\n
In this tutorial, we will cover how to install NetBeans IDE on Debian 11.\u00a0NetBeans IDE<\/a>\u00a0is a free and open source\u00a0extensible Java IDE (Integrated Development Environment) that enable software developers to quickly and easily develop Java desktop, Java EE, and web applications, as well as HTML5 applications with HTML, JavaScript, and CSS. The IDE also provides a great set of tools for PHP, Ruby and C\/C++ developers.<\/a><\/p>\n\n\n\n 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 11 main repos.<\/p>\n\n\n\n To verify the version of the installed Java development kit, run the command below;<\/p>\n\n\n\n There are different methods in which you can install NetBeans IDE on Debian. These include;<\/p>\n\n\n\n NetBeans provides a script that makes it installation easier. Navigate to Apache NetBeans downloads page<\/a> and grab the installer script for Linux. You can simply run the command below to download it (for version 12.6).<\/p>\n\n\n\n Once download, run the installation script as non root user with sudo rights it as follows;<\/p>\n\n\n\n The script will launch the NetBeans installation wizard. Note that you need to be non-root user with sudo to run the script<\/strong>, otherwise you may get such an error;<\/p>\n\n\n\n When the installer runs;<\/p>\n\n\n\n If you need to get the latest version of NetBeans installed and running on Debian 11, you can install it from snaps using the snap package manager.<\/p>\n\n\n\n On Debian 11, Snapd is not installed by default, hence run the command below to install it.<\/p>\n\n\n\n Once that is done, you need to install the But before you can install core snap, Log out of your system and re-login or simply reboot;<\/strong><\/p>\n\n\n\n Once you re-login to your system, then install core snap.<\/p>\n\n\n\n Check the available version of NetBeans provided by the Snap repos;<\/p>\n\n\n\n Well, as you can see, it got the latest version of NetBeans which you can then install using snap package manager;<\/p>\n\n\n\n In all the methods, once the installation is done, NetBeans should now be available among your system applications.<\/p>\n\n\n\n You can just launch and start using it.<\/p>\n\n\n\n Read more on NetBeans IDE Knowledge base<\/a>.<\/p>\n\n\n\n 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.<\/p>\n\n\n\n Similarly, run the uninstall script as non root user with sudo provileges;<\/p>\n\n\n\n If you installed using SNAP, then remove using the command below;<\/p>\n\n\n\n And that brings us to the end of our simple tutorial on how to install NetBeans IDE on Debian 11.<\/p>\n\n\n\n Install NetBeans IDE on Ubuntu 22.04<\/a><\/p>\n\n\n\n Install Mantis Bug Tracker on Ubuntu 20.04<\/a><\/p>\n\n\n\nInstall NetBeans IDE on Debian 11<\/h2>\n\n\n\n
Install Java Development Kit on Debian 11<\/h3>\n\n\n\n
apt update<\/code><\/pre>\n\n\n\n
apt install default-jdk<\/code><\/pre>\n\n\n\n
java -version<\/code><\/pre>\n\n\n\n
openjdk version \"11.0.14\" 2022-01-18\nOpenJDK Runtime Environment (build 11.0.14+9-post-Debian-1deb11u1)\nOpenJDK 64-Bit Server VM (build 11.0.14+9-post-Debian-1deb11u1, mixed mode, sharing)\n<\/code><\/pre>\n\n\n\n
Installing NetBeans IDE on Debian<\/h3>\n\n\n\n
\n
Install NetBeans on Debian using NetBeans installer script<\/h4>\n\n\n\n
apt install wget -y<\/code><\/pre>\n\n\n\n
wget https:\/\/dlcdn.apache.org\/netbeans\/netbeans-installers\/12.6\/Apache-NetBeans-12.6-bin-linux-x64.sh<\/code><\/pre>\n\n\n\n
sudo sh Apache-NetBeans-12.6-bin-linux-x64.sh<\/code><\/pre>\n\n\n\n
No X11 DISPLAY variable was set, but this program performed an operation which requires it.\nException: java.awt.HeadlessException thrown from the UncaughtExceptionHandler in thread \"main\"<\/code><\/pre>\n\n\n\n
\n
<\/figure><\/div><\/a><\/div>\n\n\n\n
\n
<\/figure><\/div><\/a><\/div>\n\n\n\n
\n
<\/figure><\/div><\/a><\/div>\n\n\n\n
\n
Install NetBeans from Snap on Debian 11<\/h4>\n\n\n\n
sudo apt install snapd -y<\/code><\/pre>\n\n\n\n
core<\/strong><\/code> snap in order to get the latest
snapd<\/code>.<\/p>\n\n\n\n
sudo snap install core<\/code><\/pre>\n\n\n\n
snap version<\/code><\/pre>\n\n\n\n
snap info netbeans<\/code><\/pre>\n\n\n\n
\nname: netbeans\nsummary: Apache NetBeans IDE\npublisher: Apache NetBeans\u2713\nstore-url: https:\/\/snapcraft.io\/netbeans\ncontact: https:\/\/lists.apache.org\/list.html?users@netbeans.apache.org\nlicense: Apache-2.0\ndescription: |\n Apache NetBeans IDE lets you quickly and easily develop Java desktop, Java\n EE, and web applications, as well as HTML5 applications with HTML,\n JavaScript, and CSS. The IDE also provides a great set of tools for PHP and\n C\/C++ developers.\n It is free and open source and has a large community of users and\n developers\n around the world.\n \n It requires Java 8 or later Java Development Kit installed.\n \n Disclaimer:\n This is a convenience binary of Apache NetBeans IDE, this is not an\n official release.\nsnap-id: JyXqEgtoFceo2Ppmyr1XrbqOoRIkNRrS\nchannels:\n latest\/stable: 12.6 2021-12-06 (52) 527MB classic\n latest\/candidate: \u2191 \n latest\/beta: \u2191 \n latest\/edge: 13-rc2 2022-01-28 (55) 459MB classic\n<\/code><\/pre>\n\n\n\n
sudo snap install netbeans --classic<\/code><\/pre>\n\n\n\n
Running NetBeans on Debian 11<\/h3>\n\n\n\n
<\/figure><\/div><\/a><\/div>\n\n\n\n
<\/figure><\/div><\/a><\/div>\n\n\n\n
Uninstall NetBeans IDE on Debian<\/h2>\n\n\n\n
cd \/usr\/local\/netbeans-12.6<\/code><\/pre>\n\n\n\n
sudo .\/uninstall.sh<\/code><\/pre>\n\n\n\n
sudo snap remove netbeans<\/code><\/pre>\n\n\n\n
Other Tutorials<\/h3>\n\n\n\n