Startup Issue with Minecraft - Unable to start Server after changing mod and forge versions

System Information

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

Problem Description

Issue

I changed the version of the mod and the version of java and now the server cannot start. Everytime i try i am met with the same message: “The Minecraft server stopped within 5 seconds of starting, this is not a fault with AMP - you should check your Minecraft servers log files to find out why it is unable to start.”.

Reproduction Steps

  • change forge version
  • Change mod to match version
  • Update server

you should check your Minecraft servers log files to find out why it is unable to start

(read the log, and that’ll tell you why it won’t start)

do i look at latest log, debug or the dated one?

The console and/or logs/latest.log will tell you what’s going on

this is latest log
[20Jan2025 02:38:02.348] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [–gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.34, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, nogui]
[20Jan2025 02:38:02.356] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.1.3+8.1.3+main-8.1.x.c94d18ec starting: java version 21.0.4 by Eclipse Adoptium

this is from console

Exception in thread “main” java.lang.IllegalAccessError: class cpw.mods.modlauncher.SecureJarHandler (in unnamed module @0x5b8bc155) cannot access class sun.security.util.ManifestEntryVerifier (in module java.base) because module java.base does not export sun.security.util to unnamed module @0x5b8bc155

You need to use Java 8 or Java 11 with 1.16.5

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