How to set path of JDK in Windows:

How to set path of JDK in Windows:

Path is required for using tools such as javac, java etc. If you are saving the java file in jdk/bin folder, path is not required.But If you are having your java file outsidethe jdk/bin folder, it is necessary to set path of JDK.
There are two ways to set path of JDK:

1. temporary
2. permanent


1)Setting temporary Path of JDK in Windows:
For setting the temporary path of JDK, you need to follow these steps:
  • Open command prompt
  • copy the path of bin folder
  • write in command prompt: set path=copiedpath
 For Example:
                       set path=C:\Program Files\Java\jdk1.6.0_23\bin

Let's see it in the figure given below:2)



0 comments: