Jump to content

Recommended Posts

Posted

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 :)

Posted

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?

Posted

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

Try my Modpack

spacer.png

>>Link to Curseforge<<

Posted (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 by __crispyy__
Posted

 

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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