• 0

    posted a message on Requires java 17 to run server and wont run but I have java 17?

    Thank you. The fandom wiki is outdated. Updating worked. Also, incase anyone else has this problem, to switch java versions in Ubuntu (or Debian for that matter) run
    sudo update-alternatives --config java
    this will show all your java installs and allow you to switch the default so you don't have to specify which java in your command to run a java program (i.e. minecraft or smth else)

    Posted in: Server Support and Administration
  • 0

    posted a message on Requires java 17 to run server and wont run but I have java 17?

    I am self hosting a java server on ubuntu. I installed openjdk-17-jdk and the `java --version` command returns
    ```
    java --version
    openjdk 17.0.13 2024-10-15
    OpenJDK Runtime Environment (build 17.0.13+11-Ubuntu-2ubuntu124.04)
    OpenJDK 64-Bit Server VM (build 17.0.13+11-Ubuntu-2ubuntu124.04, mixed mode, sharing)
    ```

    but when I run the start server command `java -Xmx1024M -Xms1024M -jar server.jar nogui` I get
    ```
    Error: LinkageError occurred while loading main class net.minecraft.bundler.Main
    java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
    ```

    I need to know what to do.

    Posted in: Server Support and Administration
  • To post a comment, please .