Jump to content

Recommended Posts

Posted (edited)

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>

 

 

image.png.87b2cf59396f5d59115a3ee4477b9e0e.png

 

I have started Minecraft with forge profile. Didn't help. Not sure if it was in correct way.. 

Thanks for any help! :)

 

Edited by GojiraCZ
Posted (edited)

Reading the EAQ helps too, you need to launch forge with Java 8, your PC will try to use the latest installed version (in this case 10) unless you specify by using the full path of the Java executable (Java.exe) of the version you want.

Edited by DaemonUmbra

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 5/30/2018 at 5:27 PM, DaemonUmbra said:

Reading the EAQ helps too, you need to launch forge with Java 8, your PC will try to use the latest installed version (in this case 10) unless you specify by using the full path of the Java executable (Java.exe) of the version you want.

Expand  

Sorry and thanks, next time I will read the EAQ. 

Where do I need to specify the full path? (Sry if it's a dumb question)

Windows 8.1 | Sapphire GeForce GTX 970 | Intel Core i7 4790

Posted

In the launch command instead of just using "java"

  • Like 1

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

You are very welcome

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
C:\Program Files\Java\jre1.8.0_171\bin\java.exe -Xms1G -Xmx3G -jar forge-1.12.2-14.23.4.2705-universal.jar nogui
pause

doesn't work. How should I write it so it works?

Windows 8.1 | Sapphire GeForce GTX 970 | Intel Core i7 4790

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.