Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

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

@JakeStepp12

Description

@JakeStepp12

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions