Forge 1.16 issues
Opened this issue · 0 comments
NOTE: I'm using Docker
Versions
Problem 1
Just started using MineOS and encountered some issues setting up a modded forge 1.16 server.
Incompatable Java version - Forge 1.16 only runs on Java8. Results in following error. (Not shown in logs)
[cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 16 by Oracle Corporation Exception in thread "main" java.lang.IllegalAccessError: class cpw.mods.modlauncher.SecureJarHandler (in unnamed module @0x534df152) cannot access class sun.security.util.ManifestEntryVerifier (in module java.base) because module java.base does not export sun.security.util to unnamed module @0x534df152
There is no way in the UI to change the Java version. Problem also discussed here:
Solution: Manually update server.config file with path to java executable
[java]
java_binary=/usr/lib/jvm/java-8-openjdk-amd64/bin/java
@flareofghast Has improved the UI in this PR: #452
Problem 2
Forge 1.16 does not use unix_args/windows_args which 1.17+ versions do. Therefore, the run.sh/run.bat files do not work correctly. This results in the following error, which unfortunately does not appear in the log window, had to run.sh from shell.
Error: could not open 'libraries/net/minecraftforge/forge/1.16.5-36.2.35/unix_args.txt'
Solution: (not the best). Manually edited run.sh and remove the param requirements. Is there other solution?
java @user_jvm_args.txt -jar forge-1.16.5-36.2.34.jar
Neither of the solutions above allow for the profile to be changed. So once it's running don't change the versions...