Hello guys,
I'm trying to run a Minecraft Forge server, but I can't launch the file forge-1.12.2-14.23.4.2705-universal.jar. It doesn't even show anything.
I found something in a log and down below there is an error from launching via cmd
log
[17:42:03] [Server thread/INFO]: Starting minecraft server version 1.12.2
[17:42:03] [Server console handler/ERROR]: Exception handling console input
java.io.IOException: Neplatný popisovač
at java.io.FileInputStream.readBytes(Native Method) ~[?:?]
at java.io.FileInputStream.read(Unknown Source) ~[?:?]
at java.io.BufferedInputStream.read1(Unknown Source) ~[?:?]
at java.io.BufferedInputStream.read(Unknown Source) ~[?:?]
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:?]
at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:?]
at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:?]
at java.io.InputStreamReader.read(Unknown Source) ~[?:?]
at java.io.BufferedReader.fill(Unknown Source) ~[?:?]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:?]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:?]
at nz$2.run(SourceFile:100) [minecraft_server.1.12.2.jar:?]
[17:42:03] [Server thread/INFO]: Loading properties
[17:42:04] [Server thread/INFO]: Default game type: SURVIVAL
[17:42:04] [Server thread/INFO]: Generating keypair
[17:42:04] [Server thread/INFO]: Starting Minecraft server on *:25565
[17:42:04] [Server thread/INFO]: Using default channel type
[17:42:04] [Server thread/INFO]: Preparing level "world"
[17:42:05] [Server thread/INFO]: Loaded 488 advancements
[17:42:06] [Server thread/INFO]: Preparing start region for level 0
[17:42:07] [Server thread/INFO]: Preparing spawn area: 5%
[17:42:08] [Server thread/INFO]: Preparing spawn area: 11%
[17:42:09] [Server thread/INFO]: Preparing spawn area: 18%
[17:42:10] [Server thread/INFO]: Preparing spawn area: 25%
[17:42:11] [Server thread/INFO]: Preparing spawn area: 30%
[17:42:12] [Server thread/INFO]: Preparing spawn area: 35%
[17:42:13] [Server thread/INFO]: Preparing spawn area: 41%
[17:42:14] [Server thread/INFO]: Preparing spawn area: 49%
[17:42:15] [Server thread/INFO]: Preparing spawn area: 57%
[17:42:16] [Server thread/INFO]: Preparing spawn area: 64%
[17:42:17] [Server thread/INFO]: Preparing spawn area: 72%
[17:42:18] [Server thread/INFO]: Preparing spawn area: 79%
[17:42:19] [Server thread/INFO]: Preparing spawn area: 86%
[17:42:20] [Server thread/INFO]: Preparing spawn area: 93%
[17:42:21] [Server thread/INFO]: Done (17,013s)! For help, type "help" or "?"
[17:42:24] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2602ms behind, skipping 52 tick(s)
[17:42:43] [Server thread/INFO]: Stopping the server
[17:42:43] [Server thread/INFO]: Stopping server
[17:42:43] [Server thread/INFO]: Saving players
[17:42:43] [Server thread/INFO]: Saving worlds
[17:42:43] [Server thread/INFO]: Saving chunks for level 'world'/overworld
[17:42:44] [Server thread/INFO]: Saving chunks for level 'world'/the_nether
[17:42:44] [Server thread/INFO]: Saving chunks for level 'world'/the_end
[17:42:45] [Server Shutdown Thread/INFO]: Stopping server
cmd
c:\Minecraft Server>java -jar forge-1.12.2-14.23.4.2705-universal.jar
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(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
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: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
... 6 more
c:\Minecraft Server>
I have started Minecraft with forge profile. Didn't help. Not sure if it was in correct way..
Thanks for any help!