Jump to content

Help getting a 1.12.2 Forge server up and running


Recommended Posts

Hi all,

Setting up a Forge server for the first time to run JurassiCraft 2, and needing a bit of expertise.
I have the forge server installed from the Forge 1.12.2 Forge installer, and that had no issue. 
(One thing I saw online, is that there were some videos where the server installer made a mods folder in the server directory. This did not. Is this part of the issue? Or should running the forge file make this once I can get that up and running.)

When trying to run the forge file it does not load, and when I run the command "java -jar forge-1.12.2-" from the location of the file in cmd, I get this output.

D:\Minecraft\Servers\Test>java -jar forge-1.12.2-
A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:110)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)
        at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34)
Caused by: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
        at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)

I am on the most updated version of Java, and maybe this is the issue? I know 1.12.2 is an older version of Minecraft. Do I need an older version of Java to run the server?

Any help or even just explanations for why some things are the way they are would be incredibly helpful. I'm loving learning this kind of stuff.


Link to comment
Share on other sites

4 minutes ago, TheWhoDoctor11 said:

I know 1.12.2 is an older version of Minecraft.

Therefore, you should also know that 1.12.2 is not supported here. (Just 1.18.x and 1.19.x)

I'm not good at modding, but at least I can read a crash report (well enough). That's something, right?

Link to comment
Share on other sites

This topic is now closed to further replies.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.