0

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

Brown Bear
  • 19,655
  • 10
  • 58
  • 76
Irum
  • 65
  • 9

1 Answers1

1

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.

stdunbar
  • 16,263
  • 11
  • 31
  • 53
  • thank you so much. When i removed only one of the two i was still getting the same error but when i removed both jdk,jre paths from JAVA_HOME,it worked for me. – Irum Sep 17 '17 at 08:33