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

A problem occurred running the Server launcher.java.lang.reflectInvocationTargetException #893

Open
JakeStepp12 opened this issue Jul 17, 2023 · 1 comment

Comments

@JakeStepp12
Copy link

Bug Report

When attempting to start server using the LaunchServer.bat file, the cmd window displays this list of error codes.
( I edited the LaunchServer.bat to include 'pause' on line 8 to see this error)

Steps to Reproduce (for bugs)

  1. Install .zip Server File from Curseforge Launcher
  2. Extract .zip into a "Server" folder
  3. Accept EULA
  4. Run Install.bat
  5. Run LaunchServer.bat
  6. Error

Logs

  • Client/Server Log: cmdln error
    Starting Stoneblock Server...

A problem occurred running the Server launcher. java.lang. reflect. InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImp1. invoke®(Native Method)
at java.base/jdk.internal.reflect. NativeMethodAccessorImp1. invoke (NativeMethodAccessor Imp1. java: 77)
at java.base/jdk. internal. reflect. DelegatingMethodAccessorImp1. invoke (DelegatingMethodAccessorImp1. java:
at java.base/java. lang.reflect.Method. invoke (Method. java: 568)
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$ApplassLoader cannot be cast to ava.net.URLClassLoader (jdk.internal. loader .ClassLoaders$AppClassLoader and java.net.URLClassLoader are in modul lase of loader 'bootstrap*)
at net.minecraft. launchwrapper. Launch. ‹init>(Launch. java: 34)
at net.minecraft. launchwrapper. Launch.main(Launch. java: 28)
... 6 more

Press any key to continue . . .

  • Crash Log:

Client Information

  • Modpack Version: 1.0.37
  • Server/LAN/Single Player: Server
  • Optifine Installed: No
  • Shaders Enabled: No
  • Java Version: 17.0.7.0 (latest as of 07/16/2023)
@debraina
Copy link

please edit the launch file to specify your java
"C:\Program Files\Java\jre-1.8\bin\java.exe" -server -Xmx%MAX_RAM% %JAVA_PARAMETERS% -jar %SERVER_JAR% nogui
this need a different java then you are using right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants