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

i can't launch my server #4844

Closed
Kehmit opened this issue Jan 21, 2024 · 2 comments
Closed

i can't launch my server #4844

Kehmit opened this issue Jan 21, 2024 · 2 comments

Comments

@Kehmit
Copy link

Kehmit commented Jan 21, 2024

Bug Description

Did this behavior use to work in the previous version?

Steps to Reproduce (for bugs)

Logs

  • Client/Server Log:
    A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:109)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    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:103)

  • Crash Log:
    A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:109)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    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:103)
    ... 3 more

Client Information

  • Modpack Version:
  • Java Version:
  • Launcher Used:
  • Memory Allocated:
  • Server/LAN/Single Player:
  • Optifine Installed:
  • Shaders Enabled:

World Information

  • Modpack Version world created in:
  • Additional Content Installed:

Server Information

  • Java Version: 21
  • Operating System: windows
  • Hoster/Hosting Solution: I host on my computer
  • Sponge (Non-Vanilla Forge) Server: forge
@sam-kirby
Copy link
Contributor

You must use Java 8. This is a requirement of forge for 1.12.2.

@Dolphus2
Copy link

Thank you for the help!

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

No branches or pull requests

3 participants