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.
Asked
Active
Viewed 759 times
0
-
Just make sure your PATH is correct; that's all it really needs. – markspace Jul 30 '17 at 04:44
1 Answers
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
-
-
-
So I installed java and the command java worked but not javac. So I made the JAVA_HOME variable and placed it in the path. Now neither command work. Even after I remove JAVA_HOME from path and delete it as a variable. – Grant Walton Jul 31 '17 at 06:39