I installed the Java 8 JRE at C:\Program Files\Java\bin and when I call java -version
on the C: drive I get the expected result.
If I make the same call on the E:Drive, I get the 'java' is not recognized ...
error.
However, if I run the cmd as administrator, I can successfully call Java.
Both my PATH and JAVA_HOME system vars on the E: and C: drives point to C:\Program Files\Java\bin
I know this seems very basic but I've never worked with Java and am only using it now for JMeter
echo %path%
) is there maybe no absolute path for java? E.g. instead of...;C:\Program Files\Java\bin;...
it contains only...;\Program Files\Java\bin;...
which would only resolve correctly while onC:
. The java installers should handle this correctly though, so it would most likely be something you did manually. Uninstalling all java, checking for leftovers and then reinstalling might also help.where java
? If you installed java with the oracle installer it puts a "special" entry in front of yourPATH
variable.