Jump to content

Recommended Posts

Posted

Whenever I try to run the sh in the server folder in the terminal, this happens:

A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:48)
        at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:17)
Caused by: java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
        at net.minecraft.launchwrapper.Launch.<init>(Launch.java:33)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
        ... 6 more


I'm running on Debian, just installed java fresh on this computer. I can't seem to figure out why it won't work.

Posted
1 hour ago, JaariAtmc said:

What's your java version?

I have tried both Java 9 and Java 8, with me running Java 9 right now. Am I missing dependencies?

Posted
4 hours ago, Caminon said:

I have tried both Java 9 and Java 8, with me running Java 9 right now. Am I missing dependencies?

Java 9 and Java 10 will absolutely not work with Forge, nor the launcher. For Java 8 you will need to add the legacyjavafixer if this is not already included in the server modpack. Otherwise, you could manually update to forge 1345 which includes this. The original latest (and lower) Forge versions for 1.6.4 did not support Java 8.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...