How to Install Netbeans On Ubuntu 16.04

Netbeans is an integrated development environment that will allow you to to develop a range of software applications.

This article is not specific to any particular version of Netbeans, but it will provide you all useful links and commands to get the setup done.


Visit https://netbeans.apache.org/download/index.html to check all available versions of Netbeans. Download the version you want to install. You may custom download it with your requirements.


Check if JDK is installed on your machine using:
  javac -v
If installed, you will get the current version of JDK. Otherwise, install JDK using:

Installing jdk:
 sudo apt install default-jdk
Installing jre:
 sudo apt install default-jre
Next, you have to execute the downloaded .sh file. To make the file executable you can:
1. Right click on file >> open Properties >> Permissions >> check "Allow executing  files as programs"
or
2. Execute following command in terminal in the location of .sh file:
    chmod +x filename.sh
example:
   chmod +x netbeans-8.0-linux.sh
Finally run following command to open the installer:
./filename.sh

example:
    ./netbeans-8.0-linux.sh

An installer will show up for custom installation.