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

Server start failed #178

Open
xGabrielUC opened this issue Dec 24, 2019 · 2 comments
Open

Server start failed #178

xGabrielUC opened this issue Dec 24, 2019 · 2 comments

Comments

@xGabrielUC
Copy link

Hello, when I want to open a forge 1.12.2 server in a VPS it shows me the following error

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:566)
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)
... 6 more

Forge version: 1.12.2 - 14.23.5.2847
Assigned ram: 3GB (VPS has 12)
Files on the server: https://imgur.com/a/vKMe6Vq

@JulioCBC13
Copy link

i have the same problem

@JojocraftTv
Copy link

Try running it with Java 8.
Forge 1.12.2 only supports up to JDK 8.
Hope this helps :)

If you have more Java version installed on your Server, you can force the server to use a specific version:
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xmx5G -jar forge.jar

Link for Java 8: https://www.oracle.com/de/java/technologies/javase/javase-jdk8-downloads.html

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

3 participants