Installing NetBeans IDE on Debian 10

29/12/2020
Chưa phân loại
NetBeans is an open source IDE for Java, JavaScript, PHP and Web development. It has a nice user interface and it’s easy to use. NetBeans is available on Windows, Linux and macOS.In this article, I am going to show you how to install NetBeans IDE on Debian 10 Buster. So, let’s get started.

Installing Dependency Packages:

NetBeans is written on Java. So, you must have JDK installed on your computer in order to run NetBeans. You can use either Oracle JDK or OpenJDK. It’s up to you.

In this article, I am going to use OpenJDK as it is available in the official package repository of Debian 10. If you want to use Oracle JDK, check out the article Install JDK on Debian 10.

First, update the APT package repository cache with the following command:

$ sudo apt update

The APT package repository cache should be updated.

Now, install OpenJDK from the official package repository of Debian 10 with the following command:

$ sudo apt install openjdk-11-jdk

Now, press Y and then press <Enter> to confirm the installation.

APT will download and install all the required packages from the internet automatically.

At this point, OpenJDK should be installed.

NetBeans installation files comes in a ZIP compressed file. So, you must have unzip installed in order to decompress the file.

unzip is available in the official package repository of Debian 10. You can install unzip with the following command:

$ sudo apt install unzip

As you can see, unzip is already installed on my Debian 10 machine. If it is not the case for you, APT will automatically install it for you.

Downloading NetBeans:

Now, visit the official website of NetBeans from your favorite web browser. Once the website loads, click on Download as marked in the screenshot below.

At the time of this writing, NetBeans 11 is the latest version available for download. NetBeans 11.0 LTS is the stable Long Term Release version and NetBeans 11.1 is the latest non LTS version.  The non-LTS version has some new features but may have major bugs.

In this article, I am going to download and install the LTS version. But the procedure to install the non-LTS version is the same.

Now, scroll down a little bit and click on the Binaries download link as marked in the screenshot below.

Now, click on the generated link as marked in the screenshot below. The link may be different in your case. Don’t worry about it.

Your browser should prompt you to save the NetBeans ZIP archive file as marked in the screenshot below. Select Save File and click on OK.

Your browser should start downloading the ZIP archive. It may take a while to complete.

Installing NetBeans:

Once the download is complete, navigate to the ~/Downloads directory with the following command:

$ cd ~/Downloads

As you can see, NetBeans ZIP archive (incubating-netbeans-11.0-bin.zip) is in the ~/Downloads directory.

$ ls -lh

Now, extract the NetBeans ZIP archive to the /opt directory with the following command:

$ sudo unzip incubating-netbeans-11.0-bin.zip -d /opt

The NetBeans ZIP archive is being extracted as you can see in the screenshot below.

At this point, the ZIP archive is extracted to the /opt directory.

In the next section, I will show you how to start NetBeans. Let’s continue.

Creating Desktop Shortcut for NetBeans:

Now, I am going to show you how to create a desktop shortcut for NetBeans IDE. This way, you can start NetBeans IDE very easily from the Application Menu of Debian 10.

First, create a new file netbeans.desktop in /usr/share/applications directory with the following command:

$ sudo nano /usr/share/applications/netbeans.desktop

Now, type in the following lines to the file.

[Desktop Entry]
Name=NetBeans 11.0 IDE
Comment=NetBeans 11.0 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

Once you type in the lines above, netbeans.desktop file will look as follows. Now, save the file by pressing <Ctrl> + X followed by Y and <Enter>.

Now, add the executable permission to the netbeans.desktop file with the following command:

$ sudo chmod +x /usr/share/applications/netbeans.desktop

Now, you should be able to find NetBeans in the Application Menu of Debian 10 as you can see in the screenshot below. Click on it to start NetBeans.

As you can see, the splash screen of NetBeans IDE 11 is displayed. NetBeans IDE 11 is loading.

After a while, NetBeans IDE should start as you can see in the screenshot below.

So, that’s how you install NetBeans IDE on Debian 10. Thanks for reading this article.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

REST API vs GraphQL

TL;DR version In one of the previous posts, we discussed, in brief, what’s it like to use the GitHub API v3. This version...
29/12/2020

Notepad++ Alternatives For Linux

This article aims to introduce you to some of the most popular Notepad++ alternatives for Linux including the installation,...
29/12/2020

Install Slackware Linux Distribution

“Slackware Linux is the most ancient living Linux distribution, considered the first choice for real, or for old school,...
28/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Reliable IPv4 and IPv6 Subnet Rental Services: The Perfect Solution for Global Businesses
23/12/2024

Tìm Hiểu Về Thuê Proxy US – Lợi Ích và Cách Sử Dụng Hiệu Quả
11/12/2024

Mua Proxy V6 Nuôi Facebook Spam Hiệu Quả Tại Onetcomvn
03/06/2024

Hướng dẫn cách sử dụng ProxyDroid để duyệt web ẩn danh
03/06/2024

Mua proxy Onet uy tín tại Onet.com.vn
03/06/2024