Step-by-step guide to installing the Java Development Kit (JDK) on Windows and setting up JAVA_HOME environment variables.
How to install core java on windows 8(64 bit) ?
Just follow the bellow 4 steps to install the JDK 1.7 and configure the path.
Step 1 Download the JDK 1.7.
Step 2 Install the JDK 1.7.
Step 3 Set the Environment variables(Path, JAVA_HOME).
Step 4 Check if installation and path setup is proper.
Step 1 Download the JDK 1.7
Download JDK 1.7 64 bit, from Oracle Technology Network> Java> Java SE >Downloads.
Link http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
If do not found the JDK 1.7 then open google and type "download jdk 1.7 64 bit" and find the appropriate link.
accept the licencee
Accept the licence
Jdk 1.7 for windows 64 bit
Download Windows x64
Downloading the jdk
Step 2 Install the JDK 1.7
Double click on the jdk-7u71-windows-x64.exe file
If already jdk is installed in you system it will show the below warning.
installation warning
Click Yes
Removing the old software
It will remove the software first (it may take few minutes)
After removal or the software you will see the below screen.
Java SE Development Kit
Now click next
Select JDK installation path
Click Next
Extracting Files
Wait while extracting Installer
Installation Completed
Java installation is completed. Click "Close"
Step 3 Set the Environment variables(Path, JAVA_HOME)
System properties
Select "This PC" -> "Properties" (click on the Properties)
We will see the below screen
advanced System properties
Click on "Advanced System Settings"
Environment Variables
Click "Advanced"->"Environment Variables"
new system variables
Setting the JAVA_HOME variables
Click on "New"
Now remember there are two types of variables
- User Variables
- System Variables
We will set the path and JAVA_HOME under any one category not in both
So I am going to set the variable under "System Variables"
JAVA_HOME environment varible
Now click ok
Note- JAVA_HOME is refers to the path where JDK is installed not the BIN path.
JAVA_HOME setup done
Setting the path variables
path environment variable
Note- path will refer the bin location
path variable setup done
Now we are done with installation and path setup
Step 4 Check if installation and path setup is proper
Open the command prompt
Type "java"
command prompt
Now hit enter and if we see the below screen then it is ready for java programming.
java command executed
Else it will say java is unknown command
Now enjoy the java programming.
Examples