Solved Java problem with starting server

  • Tech Support section is for getting help with FTB related problems. If there's a repeatable issue that can be labeled as a bug, then please use the issue tracker for the pack or the app at GitHub issue trackers - If there's no repository for a pack that means that the pack is old and/or will not be updated. Bugs for older packs will not be fixed, unless they are critical.
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Fwilip

New Member
Jan 30, 2022
3
0
2
Hello,
I am trying to start up a server again that hasn't been touched for a month, everything worked fine before but now it keeps displaying error messages or either "unable to acces jarfile"

Here's what it displayed

java -Xmx6144M -Xms6144M -jar forge.jar nogui
A problem occurred running the Server launcher.java.lang.reflect.InvocationTarge
tException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ
e Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native
MethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De
legatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunc
hWrapper.java:70)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaun
chWrapper.java:34)
Caused by: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$
AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loa
der.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.b
ase of loader 'bootstrap')
at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
... 6 more

C:\xxx\xxx\xxx\xxx>PAUSE
Press any key to continue . . .

Anyone that is able to help?
Every bit of information is greatly appreciated

Kind regards,
 

Fwilip

New Member
Jan 30, 2022
3
0
2