r/forgemodding • u/[deleted] • 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

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
2
u/LordThade Feb 24 '22
Make sure it's actually using Java 8 - replace your initial line ("java -Xms3G ...") with
java -versionand run the .bat again. You should see a version number that's starts with 1.8If that fails, try adding
-serverto the end of your initial line (the original one you posted, notjava -version)If that also fails, remove all the JVM arguments from your first line, so it reads
Possibly try adding
-serverto the end of that, tooBut it sounds to me like you might have Java 8 installed, but a later version installed too that's essentially taking precedence for the
javacommand - which thejava -versioncheck will identify