Startup Issue with Minecraft - Server will not start after using Forge and adding mods

System Information

Field Value
Operating System Linux - Debian GNU/Linux 11 on x86_64
Product AMP ‘Decadeus’ v2.4.6.4 (Mainline)
Virtualization QEMU_KVM
Application Minecraft
Module MinecraftModule
Running in Container No
Current State Failed

Problem Description

Issue

After uploading the mods, I restarted the server and it now refuses to start.

Reproduction Steps

  • Used Forge 1.16.5 v36.0.43
  • Created a “mods” directory
  • uploaded tested mod versions to “mods” directory

How exactly did you upload the mods?

I dragged and dropped them.

Into AMPs file manager I assume? What does the console say?

Yes, into the file manager. The logs showed the following:

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

at cpw.mods.modlauncher.SecureJarHandler.lambda$static$1(SecureJarHandler.java:41)

at cpw.mods.modlauncher.api.LamdbaExceptionUtils.uncheck(LamdbaExceptionUtils.java:95)Y

What Java runtime version are you using? (ConfigurationJava and Memory)

It is listed as running JDK 8 (hotspot)

That should probably work, I know some mods require Java 11 and rarely document it correctly.
I would suggest removing the mods and see if just plain Forge boots properly, then re-add a few mods at a time till you find the one that throws the error

Sounds like a plan. I will try that. Thanks!