Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-227862

Server 1.17 won't start | JNI error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.17
    • windows 10 Home 64bit 10.0.19042 Build 19042,
      java version 1.8.0_219,
      Java(TM) SE Runtime Environment (build 1.8.0_291-b10),
      Java HotSpot(TM) 64-Bit Server VM (build 25.291-b10, mixed mode)
    • Unconfirmed
    • (Unassigned)

      I downloaded the minecraft server version 1.17, because I wanted to set one up for me and my friends. How ever when I started it I get these error messages in cmd:

      D:\...\...>java -Xmx4096M -Xms1024M -jar server.jar nogui
      Error: A JNI error has occurred, please check your installation and try again
      Exception in thread "main" java.lang.UnsupportedClassVersionError: net/minecraft/server/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)

       

      The path is correct and I tried it with my older java version and I tried launching it with a freshly downloaded java version. My old servers (1.16) still start just fine.

            Unassigned Unassigned
            JBerg Jonas Bergholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: