Skip to content

MC 1.20.5 does not start. #2798

Closed
Closed
@jovnas

Description

@jovnas

Describe the problem

When trying to run Minecraft 1.20.5 I get the following error:
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

Adding VERSION: "1.20.4" to run the previous version works.

Container definition

services:
  mc:
    image: itzg/minecraft-server
    restart: unless-stopped
    tty: true
    stdin_open: true
    ports:
      - "25666:25565"
    environment:
      EULA: "TRUE"
      SERVER_NAME: "Helvete, Lars-Olof!"
      MOTD: "§l§dLars-Olof's\n§4Minecraft Server"
      ENABLE_COMMAND_BLOCK: "TRUE"
      WHITELIST: |
        XXX
      EXISTING_WHITELIST_FILE: "MERGE"
      OPS: |
        XXX
      EXISTING_OPS_FILE: "MERGE"
      ENABLE_ROLLING_LOGS: "TRUE"
      TX: "Europe/Stockholm"
      MEMORY: "2G"
      USE_AIKAR_FLAGS: "TRUE"
    volumes:
      - ./data:/data

Container logs

+ exec mc-server-runner --stop-duration 60s java -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -Xmx2G -Xms2G -Dlog4j.configurationFile=/data/log4j2.xml -jar minecraft_server.1.20.5.jar
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
2024-04-27T09:34:46.130Z        WARN    mc-server-runner        Minecraft server failed. Inspect logs above for errors that indicate cause. DO NOT report this line as an error.        {"exitCode": 1}
2024-04-27T09:34:46.130Z        INFO    mc-server-runner        Done

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions