Cuboid Outpost

Cuboid Outpost

116k Downloads

Crash on launch with java 17.0.2

TeddyHuang-00 opened this issue ยท 2 comments

commented

Modpack Version:
1.0.7

Describe the bug
I had been playing with this modpack for a couple of weeks and ever since I upgrade openjdk to java 17.0.2, it will throw an error and crash.

To Reproduce
Steps to reproduce the behavior:

  1. Use multimc to launch with mcwrap.py for native running on M1 Max chip
  2. java installed through homebrew by the name of openjdk (latest version: 17.0.2)
  3. Start the game, and it will crash

Expected behavior
Launching vanilla version of Minecraft 18.1 was all fine, so it's not a problem from the launcher or the wrap script. I tried to upgrade the modpack from 1.0.6 to 1.0.7 but it doesn't help. And with some quick google search I saw identical log like this one, and I suspected that this is due to the incompatibility between the forge version and java as they mentioned.

Crash Log
https://pastebin.com/mrz3qTHg

Additional context
As I typed out this issue, I found out that using a downgraded version of java11 will work fine. So if anyone had the same issue it is a temporary solution, but I do not know if forge team already had this problem fixed, otherwise it could be fixed in the next version update for compatibility's sake.

commented

Thanks a lot for that! Surely clear up the confusion and it's my problem of not having a look at the official page. Thanks again!

commented

Just to clarify, Minecraft 1.16.5 (which this pack runs on) does not work with Java 17. The bundled version of Java that comes with Minecraft 1.16.5 is Java 8, so really you should be using Java 8 when playing 1.16.5 mod packs.

It is possible, with some fiddling, to use up to Java 16 on the client and up to Java 14 on the server. If you're not confident on how to configure those newer versions of Java for use with Minecraft 1.16.5, then you should stick to using Java 8. This is a Minecraft limitation, which means a limitation imposed on Forge, and therefore a limitation for running the mod pack too.

In short, don't use Java 17 for Minecraft versions before 1.18 as it won't work.