Forge 1.16.5 Server crashing while starting

Hello everyone! I am very new to modded servers and have been running into an issue with my forge server. I am currently running MineOS on TrueNAS CORE. I have successfully gotten any vanilla version of minecraft to work without forge, but as soon as I use the forge .jar setting, the server always crashes. I have tried the following versions of java to try and fix this problem, openjdk8, openjdk8-jre, openjdk11, openjdk11-jre, openjdk15, and openjdk17. I have not attempted to load any mods yet, just forge. Here is the crash information I have received.

[27Mar2022 21:41:21.883] ain/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target ‘fmlserver’ with arguments [–gameDir, ., nogui]

[27Mar2022 21:41:21.933] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.NoSuchMethodError: sun.security.util.ManifestEntryVerifier.(Ljava/util/jar/Manifest;)V

[27Mar2022 21:41:21.933] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.SecureJarHandler.createCodeSource(SecureJarHandler.java:66)

[27Mar2022 21:41:21.933] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:275)

[27Mar2022 21:41:21.934] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136)

[27Mar2022 21:41:21.934] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98)

[27Mar2022 21:41:21.935] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.ClassLoader.loadClass(ClassLoader.java:351)

[27Mar2022 21:41:21.935] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.Class.forName0(Native Method)

[27Mar2022 21:41:21.935] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.Class.forName(Class.java:348)

[27Mar2022 21:41:21.936] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.FMLServerLaunchProvider.lambda$launchService$0(FMLServerLaunchProvider.java:51)

[27Mar2022 21:41:21.936] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)

[27Mar2022 21:41:21.936] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)

[27Mar2022 21:41:21.937] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)

[27Mar2022 21:41:21.937] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.run(Launcher.java:82)

[27Mar2022 21:41:21.937] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.main(Launcher.java:66)

[27Mar2022 21:41:21.937] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63)

[27Mar2022 21:41:21.938] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60)

[27Mar2022 21:41:21.938] ain/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.server.ServerMain.main(ServerMain.java:57)

Thank you for your time!

So I know when I tried to start a forge server it did not work because of a bug with newer versions of certain Javas. Maybe this thread will help?

However mine is uncaughtexception:1050 and yours is 1052. If it doesn’t work let me know. I hope that helps!