


If you have trouble following my instructions then take a look at the link I posted above. By default, Ubuntu 18.04 includes OpenJDK version 11, which is an open-source variant of the JRE and JDK. Reload system path: /etc/profile, or just restart. The easiest option for installing Java is to use the version packaged with Ubuntu. Sudo update-alternatives -install "/usr/bin/java" "java" "$/bin/javaws Let Ubuntu know where the Oracle Java JDK is: LOCN="/usr/local/jdk7" Save the file and exit (Ctrl+X), then enter "y" for nano. Scroll to the bottom of the file and add this: JAVA_HOME=/usr/local/java/jdk1.7.0_13 Remove open JDK from your system: sudo apt-get purge openjdk-\*Ĭreate a new directory for the oracle JDK: sudo mkdir -p /usr/local/javaĭownload the Oracle Java JDK for linux by clicking hereĬopy the Oracle Java binaries to the /usr/local/java directory: cd /home/userName/Downloads, sudo -s cp -r jfk-7u13-linux-圆4.tar.gz /usr/local/java, cd /usr/local/java.Įxtract the file: sudo -s tar xvzf jdk-7u13-linux-圆4.tar.gzĮdit the system path file: sudo nano /etc/profile
#INSTALL JAVA JDK ON UBUNTU LINUX ISO INSTALL#
However, you may need to download and install the JDK first which you can also do in terminal by typing: sudo apt-get install openjdk-7-jdk. Once downloaded you can run the NetBeans installer through terminal using: sh. You can also use your web browser in Ubuntu and head to and click "Download" at the top right, there you can choose your operating system and download the correct version of NetBeans. One way is to use Ubuntu's "Software Centre" which you can use just to search to NetBeans and it should install it including all dependencies. If you're using Ubuntu, there are several ways to install NetBeans.
