No comments yet

How to install Java & set it in the system path

[Social9_Share type="horizontal"]

This blog is to show how to install java and set it in the system path. This is mainly for java beginners who want to install and start learning  java.

We will learn to

  • Install java
  • Set it in system path
  • Check the installation  from command prompt(cmd)

 

Step 1 : Install java

1. Download Java from Oracle website from this link

https://java.com/en/download/index.jsp

Java1

 

2. The downloaded file is an exe file. Click and run the application.Click next button and proceed continuously.Finally        click finish.

 

java2

 

Now java is installed in your system. The next step is to set Java in the system path.

 

 

Step 2 : Set java in System path

  1. Goto MyComputer right click -> properties . You will see the below window. click Advanced system settings.

 

java3

 

  2. You will see this window. Click Environment Variables.

 

java4

 

  3. A window pops up. Click new button in system or user variables.

 

java5

 

  In variable name – type path.

  In variable value – specify the place where java is installed [should be till bin folder]

  please  refer the next picture

 

java6

 

  In my system Java is in C:\Program Files\Java\jdk1.7.0_45\bin 

 

java7

 

  4. After typing, click OK button. Now java path is set in your computer

 

java8

 

  5. Now close all the windows, by clicking OK button.

 

Step 3 : Check the installation from command prompt(cmd)

  1. Click start and type cmd.

 

java9

 

  Your command prompt is open now.

  2. Type java -version. This will show the java version installed in your system. 

 

java10

 

  3. Type javac. You will get the following message. If you get any other message other than this, please recheck        whether you have added the java installation path correctly.

 

java11

 

  Now you can work with java programs comfortably.

 

Happy Learning ! !

 

Post a comment