Startup Issue with Minecraft - Forge doesnt work

System Information

Field Value
Operating System Linux - Debian GNU/Linux 12 on x86_64
Product AMP ‘Callisto’ v2.5.1.0 (Mainline)
Virtualization Docker
Application Minecraft
Module MinecraftModule
Running in Container Yes
Current State Failed

Problem Description

Issue

Doesnt work on 1.16.5 TO 1.17.1

Reproduction Steps

  • set up server
  • download the software called forge onto the server
  • doesnt run with forge versions 1.16.5 to 1.17.1

It does work, it just needs to be configured correctly. Be sure that you’re using the right Java runtime for those versions, and that you read your log for any errors.

i set it on java 8 and it gives me this error in console btw its 1.16.5
main/INFO

02:19:55

ModLauncher running: args [–gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.1.20, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, nogui]

ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_402 by Temurin

Added Lets Encrypt root certificates as additional trust

SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/AMP/Minecraft/libraries/org/spongepowered/mixin/0.8.2/mixin-0.8.2.jar Service=ModLauncher Env=SERVER

02:19:57

Launching target ‘fmlserver’ with arguments [–gameDir, ., nogui]

[java.lang.ThreadGroup:uncaughtException:1052]: java.lang.NoSuchMethodError: sun.security.util.ManifestEntryVerifier.(Ljava/util/jar/Manifest;)V

[java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.SecureJarHandler.createCodeSource(SecureJarHandler.java:66)

[java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:275)

[java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136)

[java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98)

[java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.ClassLoader.loadClass(ClassLoader.java:351)

[java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.Class.forName0(Native Method)

[java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.Class.forName(Class.java:348)

[java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.FMLServerLaunchProvider.lambda$launchService$0(FMLServerLaunchProvider.java:51)

[java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)

[java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)

[java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)

[java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.run(Launcher.java:82)

[java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.main(Launcher.java:66)

[java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63)

[java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60)

[java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.server.ServerMain.main(ServerMain.java:57)

Console

02:19:58

Exception in thread “main”

Some 1.16.5 modpacks require Java 11, you could give that a go

Yeah but I’m not running a modpack just strait 1.16.5 forge and alr tested Java 11

Weird, not sure what it could be then, works fine for me.
You could try allocating more memory to it, but I don’t think that’s the issue tbh.

wait just wondering are you using linux and spigot?

I use Paper for some of my other servers, but I’ve run Forge 1.16.5 fine before

Welp is there anything at all different you used?

I use Debian 12 in a Linux LXC, use docker for all my instances, run Forge 1.16.5 using Java 8 or Java 11 depending on the mods, and it all usually just works :tm:

Though to be fair, Forge 1.16.5 is one of the more janky releases I’ve had to interact with; it tends to have some weird networking quirks, but that shouldn’t effect your ability to run an empty Forge server.

what ive noticed is that the error is happening because of an security issue with the fml loader which means that it could be something to do with the version of java 8 since ive done some research on the error and i keep seeing people talking about how after java version 321 some people experienced simular errors with very small changes. But i found someone on the spigot forums that had the same error as mine and that probably means that getting rid of spigot wont change the error. So my last hope is to try to change the java version from tumrin java 8 402 to tumrin java 8 321 and below but i dont know how to do that so can i have some help?

You would need to disable docker for the instance, then install that specific version of Java on the system (refer to temurin’s docs on how to do so)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.