How to Set Path of Java ? [Windows] [With ScreenShot ]

How to Set Path of Java ? [Windows] [With ScreenShot ]

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

How Turn ON/OFF Safe mode in Windows 10 ?
Ways To Correct The MSVCR100.DLL Problem?
Wireless Router Setup Tutorial

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 :

    1. Temporary
    2. Permanent


  • Follow the steps For Permanent Path :

Step 1: Right click My Computer and select properties.

Set path Java windows10 tricksuniversity

Step 2: Now select Advanced system settings.

Set path Java windows10 tricksuniversity

Step 3: Now select Environment variables.


[post_ads]

Set path Java windows10 tricksuniversity

Step 4: Now edit the system variables Path.

Set path Java windows10 tricksuniversity


Step 5: Now go to the java bin folder, and copy the path .
(For example: C:Program FilesJavajdk1.8.0bin)

Set path Java windows10 tricksuniversity

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))

Set path Java windows10 tricksuniversity



Step 7: ok -> ok -> ok


You successfully set path of java, Now you can run Java program from any folder.

Set path Java windows10 tricksuniversity

 


click on Next page for temporary path steps.
[next]

  • 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=copied_path



For Example:

set path=C:Program FilesJavajdk1.6.0_23bin



Set path Java windows10 tricksuniversity


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!

COMMENTS

DISQUS: 0