Tutorial Title: Installing and configuring JDK (Java Development Kit) and Netbeans 8.1 in Linix Ubuntu 16.04 (LTS)
Course: Programming
Instructor: Muhammad Samim
Note: Copy and paste commands in terminal after dollar sign ($)
Part 1. Installing JDK (Java Development Kit)
Course: Programming
Instructor: Muhammad Samim
Note: Copy and paste commands in terminal after dollar sign ($)
Part 1. Installing JDK (Java Development Kit)
- Download jdk-8u101-linux-x64.tar.gz (64 bit or 32 bit depends on your installed OS) from bellow link
- http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- Open terminal or press Ctrl + Alt + t to open terminal
- command for home folder $ cd ~
- opening Downloads folder where is downloaded file $ cd Downloads/
- Show files and folders $ ls
- Extracting zip file $ tar -zxvf jdk-8u101-linux-x64.tar.gz
- After extraction folder will be appeared (jdk1.8.0_101)
- Creating folder $ sudo mkdir /usr/lib/ java
- Should be in Downloads folder where file is extracted $ cd ~
- $ cd Downloads/
- Moving folder to created java folder $ mv jdk1.8.0_101 /usr/lib/java
- Now open .bashrc file to save path of Java
- $ cd ~
- $ sudo gedit .bashrc
- Copy and paste bellow two lines at the end and save file
- export JAVA_HOME=/usr/lib/java/jdk1.8.0_101
export PATH="$PATH:$JAVA_HOME/bin"
- Download netbeans-8.1-linux.sh file from bellow line
- http://netbeans.org/downloads/start.html?platform=linux&lang=en&option=all
- Come to home dir $ cd ~
- Open Downloads where netbeans-8.1-linux.sh is downloaded $ cd Downloads/
- $ sudo chmod 777 netbeans-8.1-linux.sh
- Installation Wizard will be appeared
- Follow the instruction
- After installation Netbeans IDE will be able to execute your java programs