How to Install NetBeans on Ubuntu

NetBeans is a coordinated advancement condition (IDE) for Java. NetBeans permits applications to be created from a lot of measured programming segments called modules. NetBeans runs on Windows, macOS, Linux and Solaris. Notwithstanding Java improvement, it has augmentations for different dialects like PHP, C, C++, HTML5, and JavaScript. Applications dependent on NetBeans, including the NetBeans IDE, can be reached out by outsider designers.

In this post, We will install Netbeans on ubuntu 16.04 /18.04.

Install Java

Step 1:- Netbean need JAVA to execute, Use the following CLI to install JAVA.

$ sudo apt-get install default-jdk -y

Add Netbeans Repository

Step 2:- Add the repo of NetBeans by following the commands.

sudo add-apt-repository ppa:vajdics/netbeans-installer

aftab@techbeginner:~$ sudo add-apt-repository ppa:vajdics/netbeans-installer
[sudo] password for aftab:
 Netbeans installer (based on the webupd8 team’s oracle java/jdk installer ppa). Automatically installs the latest version of Netbeans IDE including the Java SE, Java EE, C/C++, HTML5 & PHP plugins (‘All’ version on oracle’s download page).

The package does not depends on java, so this can be used on machines where java was installed manually without apt-get. If you do not have a working jre version on your system, netbeans will fail to start.

Supported versions of Ubuntu: 12.04 and later

NOTE: Xenial users should use the ‘netbeans’ package from ‘universe’ repository, which is also the latest version.
 More info:
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpjz7rn3zz/secring.gpg’ created
gpg: keyring `/tmp/tmpjz7rn3zz/pubring.gpg’ created
gpg: requesting key 21B4A5B3 from hkp server
gpg: /tmp/tmpjz7rn3zz/trustdb.gpg: trustdb created
gpg: key 21B4A5B3: public key “Launchpad PPA for bal” imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

Update ubuntu Repository

Step 3:- Update the ubuntu repo.

sudo apt-get update

aftab@techbeginner:~$ sudo apt update
Hit:1 xenial InRelease
Hit:2 xenial-updates InRelease                                                                          
Hit:3 xenial-backports InRelease                                                                        
Get:4 xenial InRelease [18.1 kB]                               
Hit:5 xenial-security InRelease               
Get:6 xenial/main amd64 Packages [474 B]
Get:7 xenial/main i386 Packages [474 B]
Get:8 xenial/main Translation-en [440 B]
Fetched 19.5 kB in 2s (8,837 B/s)                  
Reading package lists… Done
Building dependency tree      
Reading state information… Done
528 packages can be upgraded. Run ‘apt list –upgradable’ to see them.

Install NetBeans

Step 4:- Install the Netbean packages by using commands.

sudo apt-get install netbeans-installer -y

Search Netbeans and click to open it.

As you can see the Agreement with NetBeans, You should accept to continue.

Now you can see the Netbeans.

How to Install NetBeans on Ubuntu

5 thoughts on “How to Install NetBeans on Ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top