Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
12 views5 pages

Set Java Path in Win 10

This document provides step-by-step instructions for setting up the JAVA_HOME environment variable and updating the system PATH in Windows 10. It includes guidance on accessing system properties, adding the JAVA_HOME variable, and testing the configuration through command prompt commands. Additionally, it suggests running the command prompt as an administrator if errors occur during testing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views5 pages

Set Java Path in Win 10

This document provides step-by-step instructions for setting up the JAVA_HOME environment variable and updating the system PATH in Windows 10. It includes guidance on accessing system properties, adding the JAVA_HOME variable, and testing the configuration through command prompt commands. Additionally, it suggests running the command prompt as an administrator if errors occur during testing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

.

In the search field type in – advanced system settings


2. Click on the match on top of the list

Search for advanced system settings in Windows 10

2. Set JAVA_HOME Environment variable


In “System Properties window” click “Environment Variables…”
system properties window environment variables

Under “System variables” click the “New…” button and enter JAVA_HOME as
“Variable name” and the path to your Java JDK directory under “Variable value”
Add JAVA_HOME as system variable

3. Update System PATH


1. In “Environment Variables” window under “System variables” select Path

2. Click on “Edit…”

3. In “Edit environment variable” window click “New”

4. Type in %JAVA_HOME%\bin
Update system path

4. Test your configuration


Open a new command prompt and type in:

echo %JAVA_HOME%

this will print out the directory JAVA_HOME points to or empty line if the
environment variable is not set correctly

Now type in:

javac -version

this will print out the version of the java compiler if the Path variable is set
correctly or “javac is not recognized as an internal or external command…” otherwise.
UPDATE: in the comments below there are several suggesting to run the
command prompt as administrator if you see the error message. Please make
sure you try this option
Test JAVA_HOME and system path

You might also like