Updates
  • Starting New Weekday Batch for Java Full Stack Developer on 24th June 2024 @ 02:00 PM to 04:00 PM
  • Starting New Weekend Batch for Java Full Stack Developer on 06th July 2024 @ 11:00 AM to 02:00 PM
  • Starting New Weekday Batch for Java Full Stack Developer on 08th July 2024 @ 04:00 PM to 06:00 PM
  • Starting New Weekday Batch for Java Full Stack Developer on 29th July 2024 @ 10:00 AM to 12:00 PM
Join Course

Steps for JDK Installation and Path setting


Step :1

First, we go to Google and access www. oracle.com or enter search term –‘download java 8’, the search results appear as below:

Step:2

Click on the relevant link to open the Oracle official website.
A screen like below will appear:

Step:3

Before, you click on the download link which is shown in the above image, you should ensure that your Windows machine is either 32 bit or 64 bit, if your machine is 64 bit then click here.
A screen like below will appear:

Step:4

In the image we can see a download link for Windows 64 bit, if we click on that we start the download process.
A screen like below will appear:

Step:5

When, you click on the ‘Create Account’ tab, you will be able to see a form. To create an account you will have to fill the form.
A screen like below will appear:

Step:6

While downloading the JDK, note where the kit was downloaded in the computer and proceed top open the kit once the download is completed.
A screen like below will appear:

Step:7

After installation has been completed, click on the ‘Open’ tab, a screen like below will appear:

Step:8

In the above screen , click on the ‘Next’ button, a screen like below will appear:


Step:9

Do not change anything here and click on the ‘Next’ button.

Step:10
Step:11

And finally we can close the window.

Class Path Setting or Environment Variable Setting:

After Installing Java on any device we need to set the class path to compile and run a Java basic program. In Java we get a set of commands to perform specific tasks, like Javac from Java compiler and all the commands are available in bin folder and using class path we can define the l path of bin folder to the Operating System.

The steps for setting class path are given below:

Step:1

First, we go to My Computer or This PC properties. It will appear as below:

Step:2

After clicking on the ‘Properties’ tab we will get the below screen:

Step:3
Step:4

In above image we can see two variables , one is User Variables and the other is System Variables.

User Variables:

User variables are used for a specific variable, that is these are for current user and not for other users.

System Variables:

The system variables are used for all variables, that is these are valid for all users.

Step:5

On selecting System Variables, a screen as above appears, go to ‘path’ tab which can be seen in above image .

Step:6
Step:7

In above screen, we provide variable name as: Path

And Variable value is:

1. First, we go to installed directory, that isthe directory where we installed the JDK.
2. For example if we had installed in C drive then the path would read as , C:\Program Files\Java\jdk1.8.0_20\bin

3. There after, go to the JDK directory that is where the JDK is installed
4. There after go to the bin directory
5. There after copy the url as shown in above image
6. And there after pasted in variable value will look like this:

Step:8

1. Thereafter, click ok
2. There after click again ok
3. There after click again ok
  And finally your path has been set.

Step:9

1. Click, Windows + R button and type cmd

3. To check class path is successfully set or not, run any java command on cmd like java -version

C:\Users\JTC>java -version
java version "1.8.0_361"
Java(TM) SE Runtime Environment (build 1.8.0_361-b09)
Java HotSpot(TM) Client VM (build 25.361-b09, mixed mode, sharing)

If version is showing here, then you can assume that the Java kit has been installed and its path has been set successfully.