Jump to content
  • 0

Technicpack isJavaVersionAtLeast fails on "17-ea"



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
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
  • Forum Administrators

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).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...