When I run java -version
from the command line it returns jre1.8.0_91
. I've used setx from the command line and edited the environment variable for JAVA_HOME
. The command line seem to be overridden or ignoring the environment variable. All JDK needing commands like mvn error with: "you must set JAVA_HOME to a jdk not a jre"
JAVA_HOME=C:\Program Files\Java\jdk-11.0.6;C:\Program Files\Java\jdk1.8.0_241