Server running, GUI not appearing

I set up a server, as you do, agreed to the eula, and everything was working fine, up until the point where I actually run the server. I checked the logs, and everything was fine in there, just the gui wasn’t appearing. If anyone wants to see the logs, here you go:

[10:54:33] [Server thread/INFO]: Starting minecraft server version 1.12.2
[10:54:33] [Server thread/INFO]: Loading properties
[10:54:33] [Server console handler/ERROR]: [TerminalConsole] Failed to read console input
java.io.IOException: The handle is invalid
at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_291]
at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_291]
at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_291]
at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_291]
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_291]
at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_291]
at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_291]
at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_291]
at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_291]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_291]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_291]
at net.minecrell.terminalconsole.SimpleTerminalConsole.readCommands(SimpleTerminalConsole.java:179) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecrell.terminalconsole.SimpleTerminalConsole.start(SimpleTerminalConsole.java:142) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.DedicatedServer$2.run(DedicatedServer.java:77) ~[patched_1.12.2.jar:git-Paper-1618]
Suppressed: java.io.IOException: The handle is invalid
at java.io.FileInputStream.close0(Native Method) ~[?:1.8.0_291]
at java.io.FileInputStream.access$000(Unknown Source) ~[?:1.8.0_291]
at java.io.FileInputStream$1.close(Unknown Source) ~[?:1.8.0_291]
at java.io.FileDescriptor.closeAll(Unknown Source) ~[?:1.8.0_291]
at java.io.FileInputStream.close(Unknown Source) ~[?:1.8.0_291]
at java.io.BufferedInputStream.close(Unknown Source) ~[?:1.8.0_291]
at sun.nio.cs.StreamDecoder.implClose(Unknown Source) ~[?:1.8.0_291]
at sun.nio.cs.StreamDecoder.close(Unknown Source) ~[?:1.8.0_291]
at java.io.InputStreamReader.close(Unknown Source) ~[?:1.8.0_291]
at java.io.BufferedReader.close(Unknown Source) ~[?:1.8.0_291]
at net.minecrell.terminalconsole.SimpleTerminalConsole.readCommands(SimpleTerminalConsole.java:182) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecrell.terminalconsole.SimpleTerminalConsole.start(SimpleTerminalConsole.java:142) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.DedicatedServer$2.run(DedicatedServer.java:77) ~[patched_1.12.2.jar:git-Paper-1618]
[10:54:33] [Server thread/INFO]: Default game type: SURVIVAL
[10:54:33] [Server thread/INFO]: This server is running Paper version git-Paper-1618 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT)
[10:54:33] [Server thread/INFO]: Debug logging is disabled
[10:54:33] [Server thread/INFO]: Server Ping Player Sample Count: 12
[10:54:33] [Server thread/INFO]: Using 4 threads for Netty based IO
[10:54:33] [Server thread/INFO]: Generating keypair
[10:54:33] [Server thread/INFO]: Starting Minecraft server on 192.168.1.17:28493
[10:54:33] [Server thread/INFO]: Using default channel type
[10:54:34] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[10:54:34] [Server thread/INFO]: **** Beginning UUID conversion, this may take A LONG time ****
[10:54:34] [Server thread/INFO]: Preparing level “world”
[10:54:34] [Server thread/INFO]: -------- World Settings For [world] --------
[10:54:34] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
[10:54:34] [Server thread/INFO]: View Distance: 10
[10:54:34] [Server thread/INFO]: Item Merge Radius: 2.5
[10:54:34] [Server thread/INFO]: Item Despawn Rate: 6000
[10:54:34] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
[10:54:34] [Server thread/INFO]: Arrow Despawn Rate: 1200
[10:54:34] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[10:54:34] [Server thread/INFO]: Experience Merge Radius: 3.0
[10:54:34] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
[10:54:34] [Server thread/INFO]: Mob Spawn Range: 4
[10:54:34] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[10:54:34] [Server thread/INFO]: Random Lighting Updates: false
[10:54:34] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16 / Tiv true
[10:54:34] [Server thread/INFO]: Max TNT Explosions: 100
[10:54:34] [Server thread/INFO]: Structure Info Saving: true
[10:54:34] [Server thread/INFO]: Cactus Growth Modifier: 100%
[10:54:34] [Server thread/INFO]: Cane Growth Modifier: 100%
[10:54:34] [Server thread/INFO]: Melon Growth Modifier: 100%
[10:54:34] [Server thread/INFO]: Mushroom Growth Modifier: 100%
[10:54:34] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
[10:54:34] [Server thread/INFO]: Sapling Growth Modifier: 100%
[10:54:34] [Server thread/INFO]: Wheat Growth Modifier: 100%
[10:54:34] [Server thread/INFO]: NetherWart Growth Modifier: 100%
[10:54:34] [Server thread/INFO]: Vine Growth Modifier: 100%
[10:54:34] [Server thread/INFO]: Cocoa Growth Modifier: 100%
[10:54:34] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
[10:54:34] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[10:54:35] [Server thread/INFO]: -------- World Settings For [world_nether] --------
[10:54:35] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
[10:54:35] [Server thread/INFO]: View Distance: 10
[10:54:35] [Server thread/INFO]: Item Merge Radius: 2.5
[10:54:35] [Server thread/INFO]: Item Despawn Rate: 6000
[10:54:35] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
[10:54:35] [Server thread/INFO]: Arrow Despawn Rate: 1200
[10:54:35] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[10:54:35] [Server thread/INFO]: Experience Merge Radius: 3.0
[10:54:35] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
[10:54:35] [Server thread/INFO]: Mob Spawn Range: 4
[10:54:35] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[10:54:35] [Server thread/INFO]: Random Lighting Updates: false
[10:54:35] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16 / Tiv true
[10:54:35] [Server thread/INFO]: Max TNT Explosions: 100
[10:54:35] [Server thread/INFO]: Structure Info Saving: true
[10:54:35] [Server thread/INFO]: Cactus Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Cane Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Melon Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Mushroom Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Sapling Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Wheat Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: NetherWart Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Vine Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Cocoa Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
[10:54:35] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[10:54:35] [Server thread/INFO]: -------- World Settings For [world_the_end] --------
[10:54:35] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
[10:54:35] [Server thread/INFO]: View Distance: 10
[10:54:35] [Server thread/INFO]: Item Merge Radius: 2.5
[10:54:35] [Server thread/INFO]: Item Despawn Rate: 6000
[10:54:35] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
[10:54:35] [Server thread/INFO]: Arrow Despawn Rate: 1200
[10:54:35] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[10:54:35] [Server thread/INFO]: Experience Merge Radius: 3.0
[10:54:35] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
[10:54:35] [Server thread/INFO]: Mob Spawn Range: 4
[10:54:35] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[10:54:35] [Server thread/INFO]: Random Lighting Updates: false
[10:54:35] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16 / Tiv true
[10:54:35] [Server thread/INFO]: Max TNT Explosions: 100
[10:54:35] [Server thread/INFO]: Structure Info Saving: true
[10:54:35] [Server thread/INFO]: Cactus Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Cane Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Melon Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Mushroom Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Sapling Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Wheat Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: NetherWart Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Vine Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Cocoa Growth Modifier: 100%
[10:54:35] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
[10:54:35] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[10:54:35] [Server thread/INFO]: Preparing start region for level 0 (Seed: 7975340103439025398)
[10:54:36] [Server thread/INFO]: Preparing spawn area: 13%
[10:54:37] [Server thread/INFO]: Preparing spawn area: 29%
[10:54:38] [Server thread/INFO]: Preparing start region for level 1 (Seed: 7975340103439025398)
[10:54:39] [Server thread/INFO]: Preparing spawn area: 25%
[10:54:39] [Server thread/INFO]: Preparing start region for level 2 (Seed: 7975340103439025398)
[10:54:40] [Server thread/INFO]: Done (6.025s)! For help, type “help” or “?”
[10:54:40] [Server thread/INFO]: Timings Reset

Update:

The server is actually not running, the world is just generating. Still, I want to know why this is happening.

SOLVED:

I didn’t create a run.bat file with the code in it. If you have the same problem, create a run.bat file with the code
@echo off

java -Xms512M -Xmx512M -jar [nameofyour.jarfile].jar
pause