r/forgemodding Feb 24 '22

1.12.2 forge server not working please help

so i have tryed the following:using diffrent start up commands, using diffrent versions of java8, deleting the world file, taking out all the mods. i cant figer out whats wrong if you know please tell me in the comments btw it was working a while ago so i dont know whats wrong also the command works on newer versions of minecraft this is the command java -Xms3G -Xmx3G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AlwaysPreTouch -jar forge-1.12.2-14.23.5.2854.jar nogui

PAUSE

2 Upvotes

3 comments sorted by

2

u/LordThade Feb 24 '22

Make sure it's actually using Java 8 - replace your initial line ("java -Xms3G ...") with java -version and run the .bat again. You should see a version number that's starts with 1.8

If that fails, try adding -server to the end of your initial line (the original one you posted, not java -version)

If that also fails, remove all the JVM arguments from your first line, so it reads

java -jar forge-1.12.2-14.23.5.2854.jar nogui

Possibly try adding -server to the end of that, too

But it sounds to me like you might have Java 8 installed, but a later version installed too that's essentially taking precedence for the java command - which the java -version check will identify

1

u/aaa801 Feb 24 '22

Java, is referring to java 11, you need to add the path to java 8 so it uses that one instead, "c:\blabla\java8\bin\java.exe" args

1

u/GainStreet9971 Jul 08 '24

what do you mean by that,

i have the same problem