path is required for using tools such as javac, java etc. if you are going to save java files inside jdk/bin folder, not need to set path. but if you are going to save your java file outside jdk/bin folder, path setting is necessary.
Two ways we can set path of JDK.
1. Temporary
2. Permanent
Setting Temporary Path of JDK in Windows
For setting Temporary path, need to follow these steps
1. open command prompt
2. copy path upto bin folder of jdk
3. write in command prompt sett path=copied path
Example:
E:\study>set path=C:\Program Files\Java\jdk1.6.0_26\bin;
Setting Permanent Path of JDK in Windows
For setting Permanent path, need to follow these steps
1. Go to My Computer properties
2. Advanced System Settings
3. Environment variables
4. Select path from System variables
5. Click Edit
6. Give path of JDK upto bin folder as variable value
7. Press Ok.
8. Press Ok.
9. Press Ok.
its very use full tips to set path. thanks
ReplyDelete