__crispyy__ Posted December 10, 2023 Posted December 10, 2023 Hi, I downloaded the forge installer and setup a 1.12.2 forge server. Everything seems to work except the mods I have installed; there are around 50 in the "mods" folder but none load when the server actually starts? When i join on a forge account i can see the mods' stuff in the creative menu, but when i go to place anything it quickly disappears. The server runs fine other than that. Does anyone know what might be the problem? thankyou for any help Quote
TileEntity Posted December 10, 2023 Posted December 10, 2023 Make sure you start the forge server jar Quote Try my Modpack >>Link to Curseforge<<
__crispyy__ Posted December 10, 2023 Author Posted December 10, 2023 Hi, there are 2 jar files in the folder. "minecraft_server1.12.2", which starts the server but no mods, and "forge-14.23.5.2860", which when i open with jar, causes the cursor to do the loading circle for a few second and then nothing happens? Quote
TileEntity Posted December 10, 2023 Posted December 10, 2023 Make sure you have Java 17 installed Then create the start.bat file Into it, paste: "C:\Program Files\Java\jdk-17.0.9\bin\javaw.exe" -Xmx4G -Xms2048M -jar forge-14.23.5.2860.jar pause Keep the quotation marks and make sure the Java path is correct Start the server with the bat file Quote Try my Modpack >>Link to Curseforge<<
__crispyy__ Posted December 10, 2023 Author Posted December 10, 2023 (edited) Hey, sorry about this but i got an error C:\Users\logan\Desktop\1.12.2 Server>"C:\Program Files\Java\jdk-17\bin\java.exe" -Xmx4G -Xms2048M -jar forgeserver.jar A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) 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) ... 6 more C:\Users\logan\Desktop\1.12.2 Server>pause Press any key to continue . . . Edited December 10, 2023 by __crispyy__ Quote
nicky.gg Posted December 10, 2023 Posted December 10, 2023 1 minute ago, __crispyy__ said: Hey, sorry about this but i got an error C:\Users\logan\Desktop\1.12.2 Server>"C:\Program Files\Java\jdk-17\bin\java.exe" -Xmx4G -Xms2048M -jar forgeserver.jar A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) 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) ... 6 more C:\Users\logan\Desktop\1.12.2 Server>pause Press any key to continue . . . Firstly, Java 17 is not required for Forge in Minecraft version 1.12.2, instead it can be deadly to run a 1.12.2 server with Java 17, use Java 8!! Use the correct Java 8 path for the server and you should be good to go! For my use, I am using Eclipse Temurin Java, which you can download relatively easy! Here you have my start arguments when starting Forge server 1.12.2! "C:\Program Files\Eclipse Adoptium\jre-8.0.392.8-hotspot\bin\javaw.exe" -Xmx4G -Xms4G -jar forge-1.12.2-14.23.5.2860.jar pause As I am using Java JRE not Java JDK, please use the version that is best for you! With best regards nicky.gg Quote
TileEntity Posted December 10, 2023 Posted December 10, 2023 Oh wait - Use java 8 instead of Java 17 Quote Try my Modpack >>Link to Curseforge<<
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.