obrienlabs / benchmark

Benchmark code in Java, C, C++, XC
0 stars 0 forks source link

update to java 17 #6

Closed obriensystems closed 2 years ago

obriensystems commented 10 months ago

procedure for java upgrade to 21

micha@carbon MINGW64 /c/wse_github/benchmark/org.obrienscience.concurrent.CollatzBeowulfSE (master)
$ java -cp target/classes org.obrienscience.collatz.model.Collatz 36 37 false 1219 68838156641548227040
Error: LinkageError occurred while loading main class org.obrienscience.collatz.model.Collatz
        java.lang.UnsupportedClassVersionError: org/obrienscience/collatz/model/Collatz has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

micha@carbon MINGW64 /c/wse_github/benchmark/org.obrienscience.concurrent.CollatzBeowulfSE (master)
$ java -version
openjdk version "11.0.16.1" 2022-08-12 LTS
OpenJDK Runtime Environment Microsoft-40648 (build 11.0.16.1+1-LTS)
OpenJDK 64-Bit Server VM Microsoft-40648 (build 11.0.16.1+1-LTS, mixed mode)

https://stackoverflow.com/questions/9170832/list-of-java-class-file-format-major-version-numbers