1.16.5 server crashed

Hey. I cant understand why my server crashed. I was trying reinstall java many times to other versions and make other things whats can find in forums but nothing doenst help me.

My steps: installing forge server from installer, oppening minecraft_server.1.16.5.jar, after accepting with eula, oppening again, next closing this and opening start.bat with next attributes: java -Xms4G -Xmx4G -jar forge-1.16.5-36.2.5.jar. Thats must open forge but i got an error:

[04февр.2023 14:48:52.258] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [–gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.5, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge]
[04февр.2023 14:48:52.262] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 17.0.6 by Oracle Corporation

I DONT UNDERSTAND. On 1.12.2 spongeforge version was everything ok. I breaking my brain 2 days and cant fix that. Help please with this hell. (sorry for my english)


So this is a issue whereby your java_home has not been set.

What O.S are you using? Windows? Mac? chromehook? Or Linux?

Ill go though how to change your java_home for your laptop

os windows 10 home edition

Cool. So this is how to do it windows 7 and onwards.

Setting Java Home

First of all. Find where you installed java 8. This is typically

C:/Program Files/Java/<java version>

After that. Search on the windows start menu environment variables. This will bring up a small window where at the bottom it has a option to change environment variables

After clicking that. A new window will open with two lists

In the top one you should find one that says JAVA_HOME

Click on that and then click edit (the edit button under the first box)

After that put your location of your java in there.

Setting path

Path is something you will also need to change. This will be in the second box (its highlighted on the image). Select that and once again hit edit

You want to make sure that the java 17 place has been removed. After that put your java location in there with a /bin on the end. So the path would be something like

C:/Program Files/Java/<java version>/bin

what is java_home and path?

Path is the easiest one to explain. When you run any command from windows, your actually running a program located somewhere on your computer.

To make it easy for cmd (or powershell/windows terminal) to know of these programs. It has the path value and all locations are put in there

Java_home is when a java program wants to know where java is installed. Due to the cross platform nature of java, a developer cant just grab the path value and look until it finds one with java in it as path may not be a thing on … Say a chromebook (no idea if it is) so it uses Java_home

why is this so complex?

On the official oracle Java install. It is when downgrading from a newer version of java to a older one (I believe it does this for you when upgrading)

On openJDK (a free open source version of java). Its easy no matter what as there is a tick box when installing for setting both the java_home and path values

1 Like

I made this but have error again:

[04фев2023 16:06:46.525] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.5, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge]
[04фев2023 16:06:46.528] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_361 by Oracle Corporation
[04фев2023 16:06:47.366] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[04фев2023 16:06:47.399] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/D:/server/2/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar Service=ModLauncher Env=SERVER
[04фев2023 16:06:48.331] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlserver' with arguments [--gameDir, .]
[04фев2023 16:06:48.391] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: java.lang.NoSuchMethodError: sun.security.util.ManifestEntryVerifier.<init>(Ljava/util/jar/Manifest;)V
[04фев2023 16:06:48.391] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at cpw.mods.modlauncher.SecureJarHandler.createCodeSource(SecureJarHandler.java:66)
[04фев2023 16:06:48.392] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:275)
[04фев2023 16:06:48.392] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136)
[04фев2023 16:06:48.392] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98)
[04фев2023 16:06:48.392] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at java.lang.ClassLoader.loadClass(Unknown Source)
[04фев2023 16:06:48.393] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at java.lang.Class.forName0(Native Method)
[04фев2023 16:06:48.393] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at java.lang.Class.forName(Unknown Source)
[04фев2023 16:06:48.393] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at net.minecraftforge.fml.loading.FMLServerLaunchProvider.lambda$launchService$0(FMLServerLaunchProvider.java:51)
[04фев2023 16:06:48.393] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)
[04фев2023 16:06:48.394] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)
[04фев2023 16:06:48.395] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)
[04фев2023 16:06:48.395] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at cpw.mods.modlauncher.Launcher.run(Launcher.java:82)
[04фев2023 16:06:48.396] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at cpw.mods.modlauncher.Launcher.main(Launcher.java:66)
[04фев2023 16:06:48.396] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63)
[04фев2023 16:06:48.397] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60)
[04фев2023 16:06:48.397] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: 	at net.minecraftforge.server.ServerMain.main(ServerMain.java:57)

So the issue now isnt with your java version. Looking at the logs you sent. Its now running Java 8

java version 1.8.0_361

What you have now is a mixin conflict.

Aka one of your mods doesnt like mixins.

Mind showing a list of your mods?

Yes, sure but here is nothing

Its problem when i trying just create server. Just empty server without any mod/plugin


Oh spongeforge goes in the mods folder.

You run spongeforge by running standard forge with spongeforge as a mod

You mean put spongeforge in mods folder? If yes, i too trying that but without good results. Logs after put spongeforge in mods:

Im running server like previous 1.12.2 spongeforge but i really confused whats going on

So just read online that the latest java 8 versions actually break forge.

In particular version 321.

If you downgrade to java 8 320. That will get you running. But please note that this should be classed as a temporary work around

1 Like

Another is to use Java 11 (some mods may not work on java 11 though).

I havent tested it but apparently forge 1.16.5 supports Java 11

1 Like

now server is starting up. Very thank you! But when i adding some mods (other versions of this mod) server crashed again. On other cores this mod works correct. Its cause spongeforge using low forge version? Error also has on java 8, java 11

Sponge forge can use the latest forge version. Spongeforge will always state the version of forge it was built with (essentially the minimum version of forge)

Mind showing the error from java 8? As that log says the server didnt even boot up

Java 8

Nope that’s still java 11

version 11.0.18

I was changed java path and others to java 8