1
Server.exe Starts With Java Error
I am running windows 7 ultimate with 64-bit java.
I have my server running correctly using a batch file and the server jar, but I wanted to use the minecraft_server.1.7.9.exe because the gui opens up nicely, without an extra cmd window. I noticed whenever I use the exe, an error occurs (I went into the log to find it, because the gui also has no log on the exe), and it says this:
When this error occurs, I also notice that others can't connect to my server. I will continue to use the batch/jar combo because that's the only thing that works at the moment, but it'd be nice if anyone knows how to fix this, so my PC looks cleaner and my server will be easier to manage.
Please help (or show me where I can get it )
I have my server running correctly using a batch file and the server jar, but I wanted to use the minecraft_server.1.7.9.exe because the gui opens up nicely, without an extra cmd window. I noticed whenever I use the exe, an error occurs (I went into the log to find it, because the gui also has no log on the exe), and it says this:
Click to reveal
[10:37] [Server thread/INFO]: Starting minecraft server version 1.7.9
[10:37] [Server thread/INFO]: Loading properties
[10:37] [Server console handler/ERROR]: Exception handling console input
java.io.IOException: The handle is invalid
at java.io.FileInputStream.readBytes(Native Method) ~[?:1.7.0_51]
at java.io.FileInputStream.read(Unknown Source) ~[?:1.7.0_51]
at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.7.0_51]
at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.7.0_51]
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.7.0_51]
at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.7.0_51]
at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.7.0_51]
at java.io.InputStreamReader.read(Unknown Source) ~[?:1.7.0_51]
at java.io.BufferedReader.fill(Unknown Source) ~[?:1.7.0_51]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.7.0_51]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.7.0_51]
at lu.run(SourceFile:81) [minecraft_server.1.7.9.exe:?]
[10:37] [Server thread/INFO]: Default game type: SURVIVAL
[10:37] [Server thread/INFO]: Generating keypair
[10:37] [Server thread/INFO]: Starting Minecraft server on *:25565
[10:37] [Server thread/INFO]: Preparing level "world"
[10:37] [Server thread/INFO]: Preparing start region for level 0
[10:37] [Server thread/INFO]: Done (0.979s)! For help, type "help" or "?"
This is when I issued the "stop" command:
[10:37] [Server thread/INFO]: Stopping the server
[10:37] [Server thread/INFO]: Stopping server
[10:37] [Server thread/INFO]: Saving players
[10:37] [Server thread/INFO]: Saving worlds
[10:37] [Server thread/INFO]: Saving chunks for level 'world'/Overworld
[10:37] [Server thread/INFO]: Saving chunks for level 'world'/Nether
[10:37] [Server thread/INFO]: Saving chunks for level 'world'/The End
[10:37] [Server Shutdown Thread/INFO]: Stopping server
[10:37] [Server thread/INFO]: Loading properties
[10:37] [Server console handler/ERROR]: Exception handling console input
java.io.IOException: The handle is invalid
at java.io.FileInputStream.readBytes(Native Method) ~[?:1.7.0_51]
at java.io.FileInputStream.read(Unknown Source) ~[?:1.7.0_51]
at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.7.0_51]
at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.7.0_51]
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.7.0_51]
at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.7.0_51]
at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.7.0_51]
at java.io.InputStreamReader.read(Unknown Source) ~[?:1.7.0_51]
at java.io.BufferedReader.fill(Unknown Source) ~[?:1.7.0_51]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.7.0_51]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.7.0_51]
at lu.run(SourceFile:81) [minecraft_server.1.7.9.exe:?]
[10:37] [Server thread/INFO]: Default game type: SURVIVAL
[10:37] [Server thread/INFO]: Generating keypair
[10:37] [Server thread/INFO]: Starting Minecraft server on *:25565
[10:37] [Server thread/INFO]: Preparing level "world"
[10:37] [Server thread/INFO]: Preparing start region for level 0
[10:37] [Server thread/INFO]: Done (0.979s)! For help, type "help" or "?"
This is when I issued the "stop" command:
[10:37] [Server thread/INFO]: Stopping the server
[10:37] [Server thread/INFO]: Stopping server
[10:37] [Server thread/INFO]: Saving players
[10:37] [Server thread/INFO]: Saving worlds
[10:37] [Server thread/INFO]: Saving chunks for level 'world'/Overworld
[10:37] [Server thread/INFO]: Saving chunks for level 'world'/Nether
[10:37] [Server thread/INFO]: Saving chunks for level 'world'/The End
[10:37] [Server Shutdown Thread/INFO]: Stopping server
When this error occurs, I also notice that others can't connect to my server. I will continue to use the batch/jar combo because that's the only thing that works at the moment, but it'd be nice if anyone knows how to fix this, so my PC looks cleaner and my server will be easier to manage.
Please help (or show me where I can get it )
Click to reveal
You'd think that after 9 updates, Mojang would be able to fix the exe
1
I tried it on the .jar file and it worked fine. Here are some tips to help:
This is all i can think of because I have never had an error like that.
Click to reveal
1) Isolate the .exe in a folder
2) Run it more than once
3) Re-download it
4) Make sure you download it from minecraft.net
5) That's all I got
2) Run it more than once
3) Re-download it
4) Make sure you download it from minecraft.net
5) That's all I got
This is all i can think of because I have never had an error like that.
