-->

Header Ads

How to set path in java

we can set path in java to three types: 

1. Bin Directory

    If you are saving the java source file inside jdk/bin directory,then path is not required to be set because all the tools will be available in the current directory.

2. Temprory Path Set

•Copy the path of jdk/bin directory
•Open cmd
•Paste in cmd
Eg.
   setpath=C:\Program Files\Java\jdk1.8.0_20\bin.

3. Permanent Path Set
•Write click on my computer select properties and go to the advance system setting and select environmental variable.
•Click on new and put variable name=path
•copy the path of jdk/bin directory
•Paste in variable value
  Eg.
Variable name=path
variable value=C:\Program Files\Java\jdk1.8.0_20\bin



No comments

Powered by Blogger.