SumiForum
    • Categories
    • Recent
    • Tags
    • Popular
    • Games
      • MFME
      • Virtual Pinball
    • Register
    • Login

    Update MineOS to a newer version of Java

    Scheduled Pinned Locked Moved Minecraft
    1 Posts 1 Posters 408 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SumisuS Offline
      Sumisu Administrator
      last edited by

      If your Minecraft servers are not starting, it could be do to MineOS not having a new enough version of Java. To update the Java version you just need to run a few commands. This will update MineOS to Java 22.

      First we need to remove the default Java version with this command:
      apt remove java-common (if nothing gets removed, that’s okay, just continue to the next step)

      Next we need to download Java 22 for Linux x64:
      wget https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/openjdk-22.0.2_linux-x64_bin.tar.gz

      Now we need to extract the contents into a folder:
      tar -xf openjdk-22.0.2_linux-x64_bin.tar.gz -C /opt/

      Lastly we need to create a link to the new Java version we installed:
      ln -sf /opt/jdk-22.0.2/bin/java /usr/bin/java

      Now that Java is updated you should now be able to start your Minecraft server without restarting. Even thought the server will boot, I would recommend restarting MineOS just to be safe.

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Forum Stats

      0

      Online

      3

      Users

      30

      Topics

      30

      Posts

      Ad

      © 2024 Sumisu

      • Home
      • Categories
      • Popular