Windows 10 Java_Home Is Not Working

My system is Windows 10 64 bit

I have created an environment variable "JAVA_HOME" and updated the path but, still system is showing "The JAVA_HOME" environment variable is not defined This environment variable is needed to run this program"

Also, echo %JAVA_HOME% is not displaying the path

Please review the attached screenshots.

1 Answer

You need to close and reopen cmd.exe or restart the computer to get JAVA_HOME to propagate to your command prompt.

If cmd was open when you set the variables they will not be available in that session.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest