Server crash after running install.bat
Lollerix opened this issue ยท 2 comments
Bug Description
After a fresh install using the provided scripts the server will not start and give this error
A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:110)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
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.(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
... 3 more
Client Information
- Modpack Version: Server 3.2.3
- Java Version: 1.8.0_401-b10
- Launcher Used: provided install script
- Memory Allocated: not sure
- Server/LAN/Single Player: server
- Optifine Installed: Probably not
- Shaders Enabled: probably not
Server Information
- Java Version:1.8
- Operating System:Win10
- Hoster/Hosting Solution: localhost
@Lollerix: hello! ๐
This issue is being automatically closed because it does not follow the issue template.
You aren't using the version of Java you think you are; Java 8 has no concept of modules, but the stack trace mentions them.
Either remove the later version of Java or edit the start script so that it uses Java 8 by absolute path, e.g.
@echo off
call settings.bat
:start_server
echo Starting Sky Factory 4 Server...
"C:\Program Files\Java\jre-1.8\bin\java.exe" -server -Xms%MIN_RAM% -Xmx%MAX_RAM% %JAVA_PARAMETERS% -jar %SERVER_JAR% nogui
pause
exit /B
goto start_server
Note that the quotes around the path are required.