Problem | Remedy |
---|---|
When compiling, this error is shown: "javac is not recognized" | See VerifyPath... |
When you run the "java" command you get "UnsupportedClassVersionError ... has been compiled by a more recent version ..." | See UnsupportedClassVersionError |
"java Foo"command, if you are getting errors something like these:
UnsupportedClassVersionError has been compiled by a more recent version of the Java Runtime (this file version 57.0), this version of the Java Runtime only recognizes class file version up to 54.0
Command | Example | Notes |
---|---|---|
javac -version | >javac -version javac 11.0.2 | The configured jdk version |
java -version | >java -version java version '11.0.2' 2019-01-15 LTS | The version here should match that with the "javac -version" output |
echo %JAVA_HOME% | >echo %JAVA_HOME% C:\Program Files\Java\jdk-11.0.2 | Full path to your installed jdk |
echo %path% | >echo %path% C:\Program Files\Java\jdk-11.0.2\bin; etc... | The output should start out with the full path to your jdk plus '\bin' |
Command | Example | Notes |
---|---|---|
wmic os get osarchitecture | >wmic os get osarchitecture OSArchitecture 64-bit | 64-bit indicates system is 64-bit, otherwise system is 32-bit |
echo %PROCESSOR_ARCHITECTURE% | >echo %PROCESSOR_ARCHITECTURE% AMD64 | '64' indicates system is 64-bit, otherwise system is 32-bit |