Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server crash after running install.bat #4854

Closed
Lollerix opened this issue Mar 18, 2024 · 2 comments
Closed

Server crash after running install.bat #4854

Lollerix opened this issue Mar 18, 2024 · 2 comments
Labels
Env: Server Status: Blocked For issues ignoring template that completely lack information or other misc reasons

Comments

@Lollerix
Copy link

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
Copy link

@Lollerix: hello! 👋

This issue is being automatically closed because it does not follow the issue template.

@github-actions github-actions bot added the Status: Blocked For issues ignoring template that completely lack information or other misc reasons label Mar 18, 2024
@sam-kirby
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Env: Server Status: Blocked For issues ignoring template that completely lack information or other misc reasons
Projects
None yet
Development

No branches or pull requests

2 participants