# Don't edit these values unless you know what you are doing.
export INSTALL_JAR="forge-1.12.2-14.23.5.2831-installer.jar"
export SERVER_JAR="forge-1.12.2-14.23.5.2831-universal.jar"
# You can edit these values if you wish.
export MIN_RAM="1024M"
export MAX_RAM="4096M"
export JAVA_PARAMETERS="-XX:+UseG1GC -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -Dfml.readTimeout=180"
When I run it I get this 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.<init>(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
... 6 more
It also does not seam to generate a log so I cant provide anymore information but if someone has a fix for this please share.
Thanks heccdude.
EDIT 1:
Forgot to include specs... 8G DDR3 (upgrading soon) 2x Intel Xeon E5520 8 cores each all at 2.7ghz.
Hey I have a server pc running linux mint 19.1 (I think) and when I run ServerStart.sh
Which calls Settings.sh
When I run it I get this error:
It also does not seam to generate a log so I cant provide anymore information but if someone has a fix for this please share.
Thanks heccdude.
EDIT 1:
Forgot to include specs... 8G DDR3 (upgrading soon) 2x Intel Xeon E5520 8 cores each all at 2.7ghz.
Post the results after executing the following command in a terminal: java -version
I ran that and it seems to be open JDK despite me installing regular java aswell
anyway here are the results:
I installed the Linux X64 version is there a different command I need to use to call oracle java rather than open JDK?
I installed the Linux X64 version is there a different command I need to use to call oracle java rather than open JDK?
OK so I got that launch failure to go away but now I get this error
Could someone please take a look?
Thanks
And for anyone wondering how I got the server to launch here is a guide
(I know its wiki how just do it, it works)
Smart man me fixed it by reinstalling the server...