Hi,
After extracting the serverpack I run the Forge installation (choosed Server of course). then run Install.bat and finally the ServerStart.bat-file - and this error appeared:
Starting Sky Factory 3 Server...
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:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:62)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:31)
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
Press any key to continue . . .
I've java 64-bit installed. This is from java -version:
java version "15" 2020-09-15
Java(TM) SE Runtime Environment (build 15+36-1562)
Java HotSpot(TM) 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)
I've tried to re-install, but get the same result everytime. I don't even reach to the eula.txt-file problem.
I've Java Version 8 Update 181 installed, so that can´t be the problem I'm afraid.
My brother also have that version of Java and his SF3-server is running smoothly without errors.
He couldn't help with this problem, since he didn't have it when he installed and started his server.
This was the solution (you maybe not need to do all this steps, but this is what I did:
- I deleted my SkyFactory 3 Server installation (again)
- I deleted my Java-installations (I had both Version 8 Update 181 and Version 8 Update 261 installed) - Both 64-bits
- Restarted my computer
- Went to java.com and re-installed Version 8 Update 261 (64-bits Offline-version to be more specific)
- Tried to start the server again - Voila!
Hi,
After extracting the serverpack I run the Forge installation (choosed Server of course). then run Install.bat and finally the ServerStart.bat-file - and this error appeared:
Starting Sky Factory 3 Server...
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:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:62)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:31)
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
Press any key to continue . . .
I've java 64-bit installed. This is from java -version:
java version "15" 2020-09-15
Java(TM) SE Runtime Environment (build 15+36-1562)
Java HotSpot(TM) 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)
I've tried to re-install, but get the same result everytime. I don't even reach to the eula.txt-file problem.
What is wrong? Please help!
You have to use Java 8
I've Java Version 8 Update 181 installed, so that can´t be the problem I'm afraid.
My brother also have that version of Java and his SF3-server is running smoothly without errors.
He couldn't help with this problem, since he didn't have it when he installed and started his server.
PROBLEM SOLVED!
This was the solution (you maybe not need to do all this steps, but this is what I did:
- I deleted my SkyFactory 3 Server installation (again)
- I deleted my Java-installations (I had both Version 8 Update 181 and Version 8 Update 261 installed) - Both 64-bits
- Restarted my computer
- Went to java.com and re-installed Version 8 Update 261 (64-bits Offline-version to be more specific)
- Tried to start the server again - Voila!
Just change the path in the ServerStart.bat to the Java 8 installation
Something like
"C:\Program Files\Java\jre1.8.0_181\bin\javaw.exe" -Xmx4G -Xms4G -jar server.jar