How to set path of Java JDK in Windows OS,Setting Temporary Path of JDK,how to set path of java in windows 8 10 xp 7 ,Setting Permanent Path of JDK,How to set path of JDK in Linux OS
Hello Friends, I’m back with a tutorial where you find how to set path of Java in Windows? The path is required to be set for using tools such as javac, java etc… If you are saving the java source file inside the jdk/bin directory, path is not required to be set because all the tools will be available in the current directory. But If you want to run your java file outside the jdk/bin folder, it is necessary to set path of the JDK. There are Two types of path 1st one is Temporary and 2nd is Permanent. Here I‘ll explaining both the types.
Download JDK 8
Types of Path in JAVA :
Follow the steps For Permanent Path :
Step 1: Right click My Computer and select properties.
Step 2: Now select Advanced system settings.
Step 3: Now select Environment variables.
Step 4: Now edit the system variables Path.
Step 5: Now go to the java bin folder, and copy the path .
(For example: C:Program FilesJavajdk1.8.0bin)
Step 6: write path of bin folder in variable value (if there many path then add “;” and then paste the path
(For example: ;C:Program FilesJavajdk1.8.0bin))
Step 7: ok -> ok -> ok
You successfully set path of java, Now you can run Java program from any folder.
click on Next page for temporary path steps.
Step to set the temporary path of Java JDK :
Step 1: Open command prompt.
Step 2: copy the path of jdk/bin directory
Step 3: write in command prompt:
set path=C:Program FilesJavajdk1.6.0_23bin
Thank you for reading post. If you enjoyed this post, I’d be very grateful if you’d help it spread by G+, Twitter or Facebook. Thank you!