Installation of Java
As you know the features of Java, let’s move into the steps to install Java.
Step 1: Install JDK:
- Visit site @ http://www.oracle.com/technetwork/java/javase/downloads/index.html, choose JDK according to your operating system & download.
Step 2: Set PATH to include JDK’s directory
- Set PATH permanently in System Environment Variable
On Windows: Use the following command:-
Right click on My Computer ->Properties ->Advanced System setting ->Environment Variable ->new button in the user variable
Provide the required info:
- Variable name- PATH
- Variable value- C:\jdk1.8.o\bin
If it contains ‘C:\Windows\System32′ then change your path by ‘C:\Windows\System32; C:\Program Files\java\bin’.
Click OK button
On Linux, UNIX, Solaris
Use the following command:
Where JDK is installed in the home directory under Root (home)
- Set path temporary in command line
Say you have saved a program in D drive, then
D:\set PATH=%PATH%; C:\jdk1.8.0\bin;