Gaiasky and Java? What can fix this?

~]$ gaiasky
Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.UnsupportedClassVersionError: gaiasky/desktop/GaiaSkyDesktop has been compiled by a more recent version of the Java Runtime (class file version 60.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)

Anyone have a clue. . . it use to work and now I get this message when I run the program from terminal. Which java packages will fix this? I’m clueless. . . . packages in EOS or AUR using java?

Rich;)

It means that your Java version is lower than the one used to compile that program. Search for the Java version corresponding to [quote=“rich52, post:1, topic:50452”]
class file version 60.0
[/quote]
And install a newer Java, at least the version required

Use the command archlinux-java to switch the default java to a higher version.

It seems your default is currently set to Java 8.

Thanks for the responses. . .yes I know I have a lower version of Java then required. It’s just a matter of knowing which files to be replaced by what. . .

Rich;)

You can have multiple versions of java installed. The command I gave you lets you switch between them.

So, install the latest Java and then set it as the default.

java-17-openjdk fixed the problem. . . Thanks for the info on ‘archlinux-java’ status. . . .

I’m still learning. . . .

Rich;)