Главная » Error » Loading



    • Type:
    • Resolution:
    • Fix Version/s:


    • Affects Version/s:1.17
    • Labels:None
    • Environment:Hide
      1st: Raspberry Pi 4, 8 GB RAM, Raspberry Pi OS, Java version: OpenJDK 11.0.11

      2nd: HP Compaq 8200 Elite CMT

              OS: Windows 10 Pro 2004 64-bit

              CPU: Intel Core i7 2600

              RAM: 8GB

              GPU: Nvidia GeForce GTX 1050 Ti 4 GB

              Java version: Oracle Java(TM) 1.8.0_291
      1st: Raspberry Pi 4, 8 GB RAM, Raspberry Pi OS, Java version: OpenJDK 11.0.11

      2nd: HP Compaq 8200 Elite CMT

              OS: Windows 10 Pro 2004 64-bit

              CPU: Intel Core i7 2600

              RAM: 8GB

              GPU: Nvidia GeForce GTX 1050 Ti 4 GB

              Java version: Oracle Java(TM) 1.8.0_291

    • Confirmation Status:

    • Category:(Unassigned)


      On Raspberry Pi 4, i’ve tried to start 1.17 Java server (server.jar file). When i typed command

      java Xmx1024M Xms1024M jar server.jar nogui

      terminal listed this error:

      Error: LinkageError occurred while loading main class net.minecraft.server.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 55.0

      I’ve double-checked if update is available and reinstalled JDK, but didn’t work

      On Windows 10, i just double clicked on server.jar. Two error windows showed up. (Screenshots in attachment)

      Double-checked if update is available and Java reinstalled too, but didn’t work.



        • Options
          • Sort By Name
          • Sort By Date
          • Ascending
          • Descending
          • Thumbnails
          • List
          • Download All
        1. 1st_error.png
          1st_error.png 6 kB09/Jun/21 4:13 PM
        2. 2nd_error.png
          2nd_error.png 4 kB09/Jun/21 4:13 PM

        Issue Links


          Bug - A problem which impairs or prevents the functions of the product.
          A JNI error has occurred, please check your installation and try again

          • Resolved



              Jan Egermajer
              Votes:0Vote for this issueWatchers:0Start watching this issue

              Getting Started

              Update your Debian system to the latest release.

              This is a good idea before installing any additional packages because it will provide you with all of the latest updates and security patches for both Debian software as well as installed applications like Minecraft server. To do this simply execute the following commands in your terminal:

              sudo apt updatesudo apt upgrade 

              These commands are run in tandem; updating first then upgrading once that has completed successfully. Note that when running these commands there are no pending upgrades, they should only take up to five minutes whereas larger upgrades can take much longer so be patient!

              Install Java

              sudo apt install default-jre

              This will download the current latest release of Java and install it. If you have multiple versions installed, this will remove them all for simplicity’s sake! Once completed, you can confirm which version is currently running by typing the command below in your terminal:

              java -version

              Sample output:

              That’s it! Java has been installed on your server.

              Create a new user for Minecraft

              In this example, we create a new user named ‘minecraft’:

              sudo adduser minecraft 

              Once done with that step, type or copy-paste your password for this account twice to confirm it (it’s important to make sure this account has its own unique and secure password). 

              Sample output:

              Add the new user to the sudo group.

              sudo usermod -aG sudo minecraft

              Run your Minecraft server


              If this is your first time installing the package, you will need to accept its Terms of Service and Privacy Policy.  If you have already done so in a previous instance (e.g., for Minecraft Server), then it won’t prompt again. Accepting these agreements allows Debian’s repositories to download packages from another server on behalf of yours; this can be more convenient as they’re often better updated than your own! Once accepted, the installation should take just a few minutes to complete and no further action is necessary until that process has finished downloading all needed files and resources.

              The next step is to open the eula.txt file and set eula=true. This will allow your server to connect with the Minecraft game client software. Open that file in your preferred editor and ensure it reads: eula=true.

              sudo nano eula.txteula=true

              The next step is using screen to run our Minecraft server process independently so that we don’t need to be logged into the minecraft user account at all times when administering the game server remotely via SSH.

              screen /home/minecraft/run.sh

              This will create a new “session” called minecraft running the Minecraft process in the background; we can access this from any other shell we are logged into.

              Install Screen

              Screen is a GNU utility that can be used to multiplex terminal sessions. This is a useful tool for remote access, allowing you to detach from an ssh session and resume it later without the need of closing that instance (which would disconnect you).

              To install Screen, type:

              sudo apt install screen -y

              This command will install screen and all of its dependencies to your server.

              This is the end of this task, continue with the next task below.

              Configure Your Minecraft Server Firewall

              Next thing we want to do is set up our firewall. Debian has an excellent built-in firewall called ufw that allows us great control over what programs on our system can access outside network resources like the internet! It also includes things like port forwarding which allow certain ports through depending on criteria such as destination address or source IPs.  

              In Debian, the default settings currently only allow SSH traffic (e.g., ssh from your local system into this server). Let’s go ahead and add rules for Minecraft by typing:

              sudo ufw allow 25565


              Setting up a Minecraft Server on Debian is easy, just follow the steps in this post. If you have any questions be sure to comment below. The same steps can be applied to any Debian system, such as Debian Stretch. We hope you have enjoyed this tutorial and hope it has helped you to set up your own server! If there is anything we’ve missed, please let us know in the comments below. Happy mining!

              view as pdf |

              Share this page:

              Connect to your Minecraft Server

              Open your local Minecraft client select the Multiplayer tab and enter your server’s name and IP address.

              Note: to play on a public network you will need to buy an external domain name from any domains providers and set up Dynamic DNS yourself which is beyond the scope of this tutorial.

              You can now connect to the server. Click on the Join Server button.

              Congratulations! You can now play Minecraft and build worlds. You can build worlds and have fun with your friends, too. For more tips or help, please consult the Minecraft Wiki.

              PrerequisiteYou will need a Debian installation with root privileges.

              • A Minecraft server that is compatible with the version of your Debian release. If you are using Ubuntu, you can find out what works for you by going to their website. If it’s not clear which one to use, try googling Minecraft Server compatible on Debian /Ubuntu or ask in the comments and we’ll help!

              • https://bugs.mojang.com/browse/MC-228147
              • https://www.howtoforge.com/how-to-set-up-a-minecraft-server-on-debian-10/
              Решите Вашу проблему!