Sammy1Am / Moppy2

The evolution of the Musical flOPPY controller
Other
309 stars 50 forks source link

JRE #176

Closed MrYoungCS closed 1 year ago

MrYoungCS commented 1 year ago

I know this has been solved before, but could someone point me in the direction of fixing it\

Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: com/moppy/control/MoppyControlGUI 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(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)

Sammy1Am commented 1 year ago

You need at least Java 11, but I'd recommend just grabbing the latest stable version.

On Fri, Nov 25, 2022, 14:31 MrYoungCS @.***> wrote:

I know this has been solved before, but could someone point me in the direction of fixing it\

Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: com/moppy/control/MoppyControlGUI 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(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)

— Reply to this email directly, view it on GitHub https://github.com/Sammy1Am/Moppy2/issues/176, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADSF6A5NADBZGFJY6I7IC3WKE43FANCNFSM6AAAAAASLU7Q5E . You are receiving this because you are subscribed to this thread.Message ID: @.***>

MrYoungCS commented 1 year ago

I thought I had - hadn't realized you had to manually update the java as well by opening the java config tool, selecting view, finding the folder you've installed the JDK to and then disabling version 8!

Anyone would think adding a button saying 'would you like to make this your default version of JRE' to the install would be helpful!!

Issue seems sorted now - I put these instructions there so anyone else having this issue would be able to sort it quickly.