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

java.lang.NumberFormatException on Debian

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.17
    • None
    • Debian testing, openjdk-17-jre, 64bit x86
    • Unconfirmed
    • (Unassigned)

      Minecraft 1.17 requires a newer java version. Debian ships with openjdk-8, 10, 11 and 17. The only usable alternative among these is openjdk-17.

      After installing openjdk-17-jre I get the following:

      $ java -version
      openjdk version "17-ea" 2021-09-14
      OpenJDK Runtime Environment (build 17-ea+19-Debian-1)
      OpenJDK 64-Bit Server VM (build 17-ea+19-Debian-1, mixed mode, sharing)

      However, when attempting to start Minecraft 1.17 I get the following log message:

      B#656 java.lang.NumberFormatException: For input string: "17-ea"
      B#656 at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
      B#656 at java.base/java.lang.Integer.parseInt(Integer.java:668)
      B#656 at java.base/java.lang.Integer.parseInt(Integer.java:786)
      B#656 at net.technicpack.launchercore.modpacks.RunData.isJavaVersionAtLeast(RunData.java:34)
      B#656 at net.technicpack.launchercore.modpacks.RunData.isJavaValid(RunData.java:51)
      B#656 at net.technicpack.launchercore.modpacks.RunData.isRunDataValid(RunData.java:59)
      B#656 at net.technicpack.launcher.launch.Installer$1.run(Installer.java:142)
      B#656 at java.base/java.lang.Thread.run(Thread.java:831)

      It seems that Minecraft tries to parse 17-ea as an integer and throws and unhandled exception as a consequence.

            Unassigned Unassigned
            e8johan Johan Thelin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: