Search code examples
pathenvironment-variablesjavacwildfly-10java-home

java,javac commands work perfectly but still getting error java_home path does not exist


i am trying to run standalone.bat file from (wildfly-10.1.0.Final) folder but i am getting error in command prompt

enter image description here java, javac commands are working perfectly fine

enter image description here

Environment variables are set like this:

JAVA_HOME   C:\Program Files\Java\jdk1.8.0_144;C:\Program Files\Java\jre1.8.0_144\bin

please help me Thanks


Solution

  • Set JAVA_HOME to a single directory - it is not like a PATH environment variable. I believe that it will be the second part of the path you currently have set. Realistically you likely don't even need to set this environment variable. If java and javac are already on your path you won't need it.