Jump to content
  • 0

Technicpack isJavaVersionAtLeast fails on "17-ea"


Question

Posted (edited)

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 through technic 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 something tries to parse 17-ea as an integer and throws and unhandled exception as a consequence.

The vanilla launcher works as expected.

Edited by Pyker
Remove link in build number

1 answer to this question

Recommended Posts

  • 0
  • Forum Administrators
Posted

That's good to know. However, with the most recent version of the launcher, it should use the Mojang Java (which is 16 for 1.17). It might require you to reinstall the modpack (modpack settings -> reinstall).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...