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.
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How do I check / set the
JAVA_HOME
variable (preferably from Command Prompt (Windows 10; Version:*).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.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.