Geogebra crashes on launch

Hi guys,

I get the following error output when trying to launch Geogebra for some time now:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/geogebra/desktop/GeoGebra3D has been compiled by a more recent version of the Java Runtime (class file version 55.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(ClassLoader.java:756)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:621)

Looks like it needs a rebuild or something? Using extra/geogebra 1:5.2.851.0-1 from the official repos.

Thanks for any hints!

archlinux-java status
Available Java environments:
  java-22-openjdk (default)

your java version might not be set to a sufficient version

It works with this setting - it’s also the only one I have installed, but there can be multiple versions

2 Likes

I think this means the application was compiled with Java 11, but you are trying to run it when your installed Java is version 8. You need to have a Java version of 11 or above installed and set as the default.

2 Likes

Works, thanks for the quick support! :smiley:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.