DarkPacks / SkyFactory-4

SkyFactory 4 offers a brand-new experience never before seen in the series. Full automation, tech, magic, and bacon resources! This iteration offers over 30+ world types so you can play the pack like never before!
https://minecraft.curseforge.com/projects/skyfactory-4/
133 stars 45 forks source link

server.bat file wont open #2332

Closed Nightmare0099 closed 1 month ago

Nightmare0099 commented 1 month ago

Bug Description

the server.bat file wont open i have already downloaded the latest version on java ### Did this behavior use to work in the previous version?

Steps to Reproduce (for bugs)

1. 2. 3.

Logs

World Information

Client Information

Server Information

sam-kirby commented 1 month ago

Your version of Java is too modern; this version of Minecraft Forge requires you use Java 8, which has no concept of modules.

Either uninstall this latest version of Java and install a 64-bit build of Java 8, or should you require the latest version of Java for other purposes you can install Java 8 alongside it and then modify the start script so that it uses this version by absolute path, an example of this is as follows (which you can copy and paste assuming the installation location matches):-


@echo off

call settings.bat

:start_server
echo Starting Server
"C:\Program Files\Java\jre-1.8\bin\java.exe" -Xms%MIN_RAM% -Xmx%MAX_RAM% %JAVA_PARAMETERS% -jar %SERVER_JAR% nogui
pause
exit /B

goto start_server