DEV Community

Discussion on: Java didn't update?

Collapse
 
hunter profile image
Hunter Henrichsen

I'd check where your JAVA_HOME path variable points, as well as which Java executable you have in your path.

Collapse
 
baenencalin profile image
Calin Baenen

How do I check / set the JAVA_HOME variable (preferably from Command Prompt (Windows 10; Version:*).

Collapse
 
hunter profile image
Hunter Henrichsen

You can run echo %JAVA_HOME% to check the variable. I normally edit them through the Environment Variables dialogue under System Properties > Advanced, as I'm less prone to wiping out important variables that way. You also may want to restart your computer if you edit the system path.

Thread Thread
 
thefern profile image
Fernando B 🚀

You don't need to restart your computer, just restart cmd prompt. Just make sure your new java / bin folder is on PATH, and not multiple java versions.