0
Not a bug

Java runtime error at launch

Tomas Platero 6 months ago updated by Tom 6 months ago 2

I have ubooquity 2 running during years and when i try to lunch version 3 i have this error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/ubooquity/Launcher 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 52.0


My machine is a Windows 11 update 23H2. 

Then i stop ubooquity 2, try again a nothing.

My ubooquity 2 run commad is :

java -jar -Xms1g -Xmx2g g:\ubooquity\Ubooquity.jar --headless --remoteadmin

and this work for me perfectly during years.

The i try whith the same command and i have other error:

G:\Ubooquity 3>java -jar -Xms1g -Xmx2g Ubooquity.jar
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

Then i upgrade java for the last version and now i have:

G:\Ubooquity 3>java -version
java version "1.8.0_411"
Java(TM) SE Runtime Environment (build 1.8.0_411-b09)
Java HotSpot(TM) Client VM (build 25.411-b09, mixed mode, sharing)

Restart the machine and again the same error.

Also try as administrator but the error continues.

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/ubooquity/Launcher 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 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

Sorry. I installed jdk and nor running.

Not a bug
Then i upgrade java for the last version and now i have:
G:\Ubooquity 3>java -version
java version "1.8.0_411"

You have the latest version of Java 8.

You need at least Java 17 to run Ubooquity 3.

For Windows you can use this one (but other exists, any Java 17+ should be fine): 

https://adoptium.net/en-GB/temurin/releases/?os=windows&arch=x64