Java Error while starting craftbukkit-1.18.2.jar

Discussion in 'Bukkit Help' started by micha12342, Mar 25, 2022.

Thread Status:
Not open for further replies.
  1. Offline

    micha12342

    Hello,

    when I try to start the craftbukkit-1.18.2.jar with the follwing command: java -jar craftbukkit-1.18.2.jar I get the Java Errormessage:

    Exception in thread "main" java.lang.UnsupportedClassVersionError: org/bukkit/craftbukkit/bootstrap/Main 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(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)

    I am using the Java Version
    Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode). That should be the newest.

    Can anybody help, I have no Idea.
     
  2. Offline

    timtower Administrator Administrator Moderator

    @micha12342 Install a newer java version
    You need java 17
     
  3. Offline

    matblader

    Hi, i have this same problem, i tried installing the java 17 version, but doin it, i was unable to launch minecraft because the launcher use a more recent version of java.
    i tried unnistaling and reinstaling java, and didt work either. Also tried to mount a server with the original java file that the oficcial minecraft page gave me, and had the same problem, its like im stuck on the recompile version 52 when im using the last update of java, and i have no idea what to do to change it.

    hoping someone know what to do. Cya
    upload_2022-3-29_17-19-24.png
     
  4. Offline

    timtower Administrator Administrator Moderator

    @matblader Need to change the "java" to the full path of the java.exe, it is still using the old version.
     
    Voronets likes this.
  5. Offline

    matblader

Thread Status:
Not open for further replies.

Share This Page