0

I installed java and originally the java command worked but not javac. So I made a JAVA_HOME variable in environment viarables and added %JAVA_HOME%\bin; to the path variable. Now neither java nor javac work. It is worth nothing that I created a JAVA_HOME variable and added it incorrectly to path before this. I deleted this variable and erased it from path before starting over. However after I erased it the java command had already stopped working. Please help. Thank you.

Grant Walton
  • 51
  • 2
  • 7

1 Answers1

0

For java and javac to be recognized you need to set your environment variables JAVA_HOME and PATH.

JAVA_HOME should contain the path to the java installation folder. For PATH you should add %JAVA_HOME%\bin

zuckermanori
  • 1,675
  • 5
  • 22
  • 31