Search

How to set path in Java (Temporary)


The path is required to be set for using tools such as javac, java etc.

There are two ways to set path:
  • Temporary
  •  Permanent
Today we will be talking about Temporary method for setting path in Java.

Step 1:
Open Command Prompt.
  • press Windows+r.
  • type cmd




Step 2:Copy the path of jdk\bin directory.


The default path is :
 C:\Program Files\Java\jdk<version>\bin

Step 3:In command prompt write
set path=copied path
 For eg:

set path = C:\Program Files\Java\jdk1.7.0_75\bin



And your path set set temporarily. In next post will write about setting the path in Java permanently.
 

No comments:

Post a Comment

© 2015. All Rights Reserved.