Issue
java & java -version commands are accessible from the bin folder of JDK, but I can not access them from desktop or anywhere else, but the programs are running successfully in IDE! What should I do?
Inside the JDK bin folder:
From Desktop:
Solution
JAVA_HOME
is used by third-party tools to find java
(not by java
itself). You can use that to set your PATH
, which is what is searched.
set "PATH=%JAVA_HOME%\bin;%PATH%"
Note that the quotes are correct in this command and moving (or removing) them will break it.
Answered By - Elliott Frisch
Answer Checked By - Senaida (JavaFixing Volunteer)