Sitemap

Java environment variable configuration in Windows

3 min readMay 21, 2023

--

In this blog, I will show you how to configure Java environment variables in Windows without having admin access.

Press enter or click to view image in full size
  1. Download the Java zip file with respect to your system — https://jdk.java.net/archive/
  2. Extract the zip file and open the JDK directory.
  3. Copy the JDK path.
  4. In the Windows search, search for “Edit environment variable for your account” and open it.
Press enter or click to view image in full size

5. Click on New under User variables.

Press enter or click to view image in full size

6. Enter the Variable name as JAVA_HOME and the Variable value is the JDK path that you have copied in step-3.

Press enter or click to view image in full size

7. Once you provided the Variable details, click ‘OK’. It will add the JDK path to your User variables

Press enter or click to view image in full size

8. Click on Path → Edit →New

Press enter or click to view image in full size
Press enter or click to view image in full size

9. Open the JDK path that you copied in step-3. Once it’s opened, you will see a bin directory. Open it and copy the bin path and paste it into the Environment variable path as below and click ok.

Press enter or click to view image in full size

10. Once you have added both the JDK and bin path to User Variables click ‘OK’.

Get Adarsh’s stories in your inbox

Join Medium for free to get updates from this writer.

11. Restart your system and open the command prompt, and check if the Java configuration is completed successfully as below.

Command → java -version

Press enter or click to view image in full size

This concludes the blog for Java environment variable configuration in Windows. Please follow my blogs for more blogs.

If you have any doubts, please let me know in the comment session below. Thank you.

--

--

Adarsh
Adarsh

Written by Adarsh

Experienced software engineer with expertise in Java, C, C++, Python, Oracle SQL, Unix, and development tools like Eclipse, VS Code, and Putty.