You are on page 1of 8

JDK Installation Guide

JDK Installation Guide


1. Create an account on Oracle by following the link below.

https://profile.oracle.com/myprofile/account/create-account.jspx

Fill all the required fields and click on “Create Account” button to create an Oracle
account.
After clicking on the “Create Account” button, you will be asked to check your email for
registration confirmation.
Click on the link which you have received in the email to confirm your registration.

2. Visit the link given below:

https://www.oracle.com/java/technologies/downloads/#java8
JDK Installation Guide

3. Click on Java 8 and Select the option based on your OS type.

4. In the next screen, accept the licence agreement and click the download button.

5. It will redirect you to oracle sign in page. Enter your Oracle account username and
password and click on “Sign In” button. After successful login, the download will
start.
JDK Installation Guide

6. Once the Java JDK 8 download is completed, run the exe file to install JDK. Click Next
in the below screen.

7. Select the PATH to install Java in Windows… You can leave it Default. Click next.

NOTE: Follow the onscreen instructions in succeeding steps to complete the installation.
JDK Installation Guide

8. Once you install Java in windows, click Close.

Steps to set Environment Variables in Java: Path and Classpath

The PATH variable gives the location of executables like javac, java etc. It is possible to
run a program without specifying the PATH, but you will need to give full path of
executable like C:\Program Files\Java\jdk1.8.0_271\bin\javac A.java instead of
simple javac A.java

The CLASSPATH variable gives location of the Library Files.


JDK Installation Guide

Let us follow the steps to set the PATH and CLASSPATH.

1. Right Click on the This PC and Select the properties.

2. Click on advanced system settings.


JDK Installation Guide

3. Click on Environment Variables to set Java runtime environment.

4. Click on new Button of User variables.


JDK Installation Guide

5. Type PATH in the Variable name.

6. Copy the path of bin folder which is installed in JDK folder.

7. Paste Path of bin folder in Variable value. Click on OK Button.

Note: In case you already have a PATH variable created in your PC, edit the PATH
variable to

PATH = <JDK installation directory>\bin;%PATH%;

Here, %PATH% appends the existing path variable to our new value
JDK Installation Guide

8. You can follow a similar process to set CLASSPATH.

9. Follow similar steps to set JAVA_HOME.

10. Click on OK buttons on all screen to close all opened screens.

You might also like