Start Server

Discussion in 'General Help' started by AndrewWinjum, Jun 19, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    AndrewWinjum

    How do I start my server up so I can join once I have logged into Minecraft?
     
  2. Offline

    Zombie_Striker

    @AndrewWinjum
    You can't. You can have an executable that opens the launcher and the server startup file, but there is no way to directly link the launcher with the server jar.
     
  3. Offline

    AndrewWinjum

    So in my Minecraft Server Folder, what should I do to start my server up?
     
  4. Offline

    Zombie_Striker

    @AndrewWinjum
    If you want to create a new executable, create a new txt file. In it, add two lines; one that find the directory of the server and run the executable, and one that finds the minecraft executable and runs that. Once you're done, save that as an .exe file and run that when you want to start the launcher and your server.
     
  5. Offline

    AndrewWinjum

    Can you give me an example of what this looks like? My executable titled craftbukkit-1.12 is in a seperate folder titled Minecraft Server. And so if I create a .exe and put it in my Minecraft Server folder I will just doubleclick that and the server will start?
     
  6. Offline

    Zombie_Striker

    @AndrewWinjum
    Code:
    start C:/DIRECTORY/TO/LAUNCHER/MinecraftLauncher.exe
    java -Xms512M -jar C:/DIRECTORY/TO/SERVER/craftbukkit.jar
    The executable does not need to be in the server directory.
     
  7. Offline

    AndrewWinjum

    Should I write exactly what you typed in the first line? Or will mine be a little different, my executable is found in ThisPC > Desktop > Minecraft Server.
    And the bottom line, should I type exactly what you wrote but adjust the -Xms512M to whatever RAM fits my purposes?
     
  8. Offline

    Zombie_Striker

    @AndrewWinjum
    1. Neither should be exactly as I wrote it. You will need to provide the path to each file.
    2. Do not change the Xms. That is the minimum amount of ram allowed, setting it any lower will cause the server to crash, and any higher will mean you are setting the minimum to be higher than it needs to be.
     
  9. Offline

    AndrewWinjum

    OK so if my executable is in thispc/desktop/minecraft server and my launcher is in C drive: Users: andre.Laptop-8LJR16A7: desktop: Minecraft_staging.exe should my top line of code say:
    start C:\Users\andre.LAPTOP-8LJR16A7\Desktop\Minecraft_staging.exe ?
    and my second line say:
    java -Xms512M -jar thispc/desktop/minecraft server.exe ?

    Thank you so much for your help and being patient with me!
     
  10. Offline

    Zombie_Striker

    @AndrewWinjum
    The first line is correct; you are providing the full path to the executable. The second line also needs to include the full path.

    Also, make sure you are using the same slashes for both lines. If you are on a windows/linux machine, use forward slashes ( / ). For Mac, use back slashes ( \ )
     
  11. Offline

    AndrewWinjum

    Does this look right to you? The executable I created was called start_server.exe.
    start C:\Users\andre.LAPTOP-8LJR16A7\Desktop\Minecraft_staging.exe
    C:\Users\andre.LAPTOP-8LJR16A7\Desktop\Minecraft Server\start_server.exe
    Also, I am using a Windows HP Pavilion, should I make all the slashes in my code like this / instead of this \ ?
     
  12. Offline

    Zombie_Striker

    @AndrewWinjum
    That should be fine. Since you're using windows, use forward slashes ( / ).
     
  13. Offline

    AndrewWinjum

    I typed that into a New Text Document and saved it as start_server.exe and it successfully created the new file. However, in its file type it says it is an application, and when I double-click it to run it it says "This app can't be run on your PC." Did I do something wrong?
     
  14. Offline

    timtower Administrator Administrator Moderator

    Last edited: Jun 21, 2017
  15. Offline

    AndrewWinjum

    OK I did that and I ran the start_server.cmd but it still says cannot connect to server when I go into Minecraft. Also I still have the problem of the console, it appears for a fraction of a second and then immediately disappears off my screen so I cannot access it.
     
    Last edited: Jun 20, 2017
  16. Offline

    timtower Administrator Administrator Moderator

  17. Offline

    Zombie_Striker

    @AndrewWinjum
    Which console is appearing for a fraction of a second; The one that launches the launcher and the server, or the server console?

    Are you sure the server is online? Can you post the console log?
     
  18. Offline

    AndrewWinjum

    [14:26:29] [Server thread/INFO]: Starting minecraft server version 1.12
    [14:26:29] [Server thread/WARN]: To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
    [14:26:29] [Server thread/INFO]: Loading properties
    [14:26:29] [Server console handler/ERROR]: Exception handling console input
    java.io.IOException: The handle is invalid
    at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_101]
    at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_101]
    at java.io.BufferedInputStream.fill(Unknown Source) ~[?:1.8.0_101]
    at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_101]
    at org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:248) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:261) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:198) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2145) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLineSimple(ConsoleReader.java:3183) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:2333) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:2269) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:2257) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.DedicatedServer$2.run(DedicatedServer.java:86) [craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    [14:26:29] [Server thread/INFO]: Default game type: CREATIVE
    [14:26:29] [Server thread/INFO]: Generating keypair
    [14:26:29] [Server thread/INFO]: Starting Minecraft server on *:25565
    [14:26:29] [Server thread/INFO]: Using default channel type
    [14:26:30] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-a7d074c (MC: 1.12) (Implementing API version 1.12-R0.1-SNAPSHOT)
    [14:26:31] [Server thread/WARN]: java.io.FileNotFoundException: .\mainlobby\unknownplayers\ltjim007.dat (The system cannot find the path specified)
    [14:26:31] [Server thread/WARN]: at java.io.FileInputStream.open0(Native Method)
    [14:26:31] [Server thread/WARN]: at java.io.FileInputStream.open(Unknown Source)
    [14:26:31] [Server thread/WARN]: at java.io.FileInputStream.<init>(Unknown Source)
    [14:26:31] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.NameReferencingFileConverter$6.a(NameReferencingFileConverter.java:361)
    [14:26:31] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.NameReferencingFileConverter$6.onProfileLookupSucceeded(NameReferencingFileConverter.java:338)
    [14:26:31] [Server thread/WARN]: at com.mojang.authlib.yggdrasil.YggdrasilGameProfileRepository.findProfilesByNames(YggdrasilGameProfileRepository.java:63)
    [14:26:31] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.NameReferencingFileConverter.a(NameReferencingFileConverter.java:68)
    [14:26:31] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.NameReferencingFileConverter.a(NameReferencingFileConverter.java:409)
    [14:26:31] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.aS(DedicatedServer.java:588)
    [14:26:31] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:195)
    [14:26:31] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:521)
    [14:26:31] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source)
    [14:26:31] [Server thread/ERROR]: Conversion failed, please try again later
    net.minecraft.server.v1_12_R1.NameReferencingFileConverter$FileConversionException: Could not convert file for ltjim007
    at net.minecraft.server.v1_12_R1.NameReferencingFileConverter$6.a(NameReferencingFileConverter.java:383) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.NameReferencingFileConverter$6.onProfileLookupSucceeded(NameReferencingFileConverter.java:338) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at com.mojang.authlib.yggdrasil.YggdrasilGameProfileRepository.findProfilesByNames(YggdrasilGameProfileRepository.java:63) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.NameReferencingFileConverter.a(NameReferencingFileConverter.java:68) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.NameReferencingFileConverter.a(NameReferencingFileConverter.java:409) [craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.DedicatedServer.aS(DedicatedServer.java:588) [craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:195) [craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:521) [craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_101]
    [14:26:31] [Server thread/WARN]: Encountered a problem while converting the player save files, retrying in a few seconds
    [14:26:36] [Server thread/WARN]: java.io.FileNotFoundException: .\mainlobby\unknownplayers\ltjim007.dat (The system cannot find the path specified)
    [14:26:36] [Server thread/WARN]: at java.io.FileInputStream.open0(Native Method)
    [14:26:36] [Server thread/WARN]: at java.io.FileInputStream.open(Unknown Source)
    [14:26:36] [Server thread/WARN]: at java.io.FileInputStream.<init>(Unknown Source)
    [14:26:36] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.NameReferencingFileConverter$6.a(NameReferencingFileConverter.java:361)
    [14:26:36] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.NameReferencingFileConverter$6.onProfileLookupSucceeded(NameReferencingFileConverter.java:338)
    [14:26:36] [Server thread/WARN]: at com.mojang.authlib.yggdrasil.YggdrasilGameProfileRepository.findProfilesByNames(YggdrasilGameProfileRepository.java:63)
    [14:26:36] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.NameReferencingFileConverter.a(NameReferencingFileConverter.java:68)
    [14:26:36] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.NameReferencingFileConverter.a(NameReferencingFileConverter.java:409)
    [14:26:36] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.aS(DedicatedServer.java:588)
    [14:26:36] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:195)
    [14:26:36] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:521)
    [14:26:36] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source)
    [14:26:36] [Server thread/ERROR]: Conversion failed, please try again later
    net.minecraft.server.v1_12_R1.NameReferencingFileConverter$FileConversionException: Could not convert file for ltjim007
    at net.minecraft.server.v1_12_R1.NameReferencingFileConverter$6.a(NameReferencingFileConverter.java:383) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.NameReferencingFileConverter$6.onProfileLookupSucceeded(NameReferencingFileConverter.java:338) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at com.mojang.authlib.yggdrasil.YggdrasilGameProfileRepository.findProfilesByNames(YggdrasilGameProfileRepository.java:63) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.NameReferencingFileConverter.a(NameReferencingFileConverter.java:68) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.NameReferencingFileConverter.a(NameReferencingFileConverter.java:409) [craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at n[14:26:37] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
    [14:26:37] [Server thread/WARN]: The exception was: java.net.BindException: Address already in use: bind
    [14:26:37] [Server thread/WARN]: Perhaps a server is already running on that port?
    [14:26:37] [Server thread/INFO]: Stopping server
    [14:26:37] [Server thread/INFO]: Saving players
    a7d074c]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_101]
    [14:26:36] [Server thread/WARN]: Encountered a problem while converting the player save files, retrying in a few seconds
    [14:26:42] [Server thread/WARN]: java.io.FileNotFoundException: .\mainlobby\unknownplayers\ltjim007.dat (The system cannot find the path specified)
    [14:26:42] [Server thread/WARN]: at java.io.FileInputStream.open0(Native Method)
    [14:26:42] [Server thread/WARN]: at java.io.FileInputStream.open(Unknown Source)
    [14:26:42] [Server thread/WARN]: at java.io.FileInputStream.<init>(Unknown Source)
    [14:26:42] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.NameReferencingFileConverter$6.a(NameReferencingFileConverter.java:361)
    [14:26:42] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.NameReferencingFileConverter$6.onProfileLookupSucceeded(NameReferencingFileConverter.java:338)
    [14:26:42] [Server thread/WARN]: at com.mojang.authlib.yggdrasil.YggdrasilGameProfileRepository.findProfilesByNames(YggdrasilGameProfileRepository.java:63)
    [14:26:42] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.NameReferencingFileConverter.a(NameReferencingFileConverter.java:68)
    [14:26:42] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.NameReferencingFileConverter.a(NameReferencingFileConverter.java:409)
    [14:26:42] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.aS(DedicatedServer.java:588)
    [14:26:42] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:195)
    [14:26:42] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:521)
    [14:26:42] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source)
    [14:26:42] [Server thread/ERROR]: Conversion failed, please try again later
    net.minecraft.server.v1_12_R1.NameReferencingFileConverter$FileConversionException: Could not convert file for ltjim007
    at net.minecraft.server.v1_12_R1.NameReferencingFileConverter$6.a(NameReferencingFileConverter.java:383) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.NameReferencingFileConverter$6.onProfileLookupSucceeded(NameReferencingFileConverter.java:338) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at com.mojang.authlib.yggdrasil.YggdrasilGameProfileRepository.findProfilesByNames(YggdrasilGameProfileRepository.java:63) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.NameReferencingFileConverter.a(NameReferencingFileConverter.java:68) ~[craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.NameReferencingFileConverter.a(NameReferencingFileConverter.java:409) [craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.DedicatedServer.aS(DedicatedServer.java:588) [craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:195) [craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:521) [craftbukkit-1.12.jar:git-Bukkit-a7d074c]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_101]
    [14:26:42] [Server thread/WARN]: **** DETECTED OLD PLAYER DIRECTORY IN THE WORLD SAVE
    [14:26:42] [Server thread/WARN]: **** THIS USUALLY HAPPENS WHEN THE AUTOMATIC CONVERSION FAILED IN SOME WAY
    [14:26:42] [Server thread/WARN]: ** please restart the server and if the problem persists, remove the directory '.\mainlobby\players'
    [14:26:42] [Server thread/INFO]: Stopping server
    [14:26:42] [Server thread/INFO]: Saving players
     
  19. Offline

    Zombie_Striker

    @AndrewWinjum
    You seem to have two instances of the server running. Make sure you never double click the jar file to run the server. Go into task manager (CTRL+SHIFT+ESC), and kill all JavaW processes and try again.
     
  20. Offline

    AndrewWinjum

    I did and it still doesnt work, when I run the start_server.cmd (the Windows Command that starts my server), should it open up both my old and new minecraft launchers? Because thats what it is doing. Also no GUI is showing up.
     
  21. Offline

    YoloSanta

    Hopefully your killing the right thing, restarting your pc should kill it for you, if it happens again after a restart then try changing the port in the server.properties to for example 25567
     
  22. Offline

    AndrewWinjum

    OK I restarted it and it didnt work again I will change the port number. You want it at exactly 25567?
     
  23. Offline

    Zombie_Striker

    @YoloSanta @AndrewWinjum
    Do not change the port. Although it will remove the error, no one will be able to connect to the server.
     
  24. Offline

    YoloSanta

    Yes they can, if this Is a local host server then do localhost:<port> Or if it's a public server <ip>:<port>

    Also @AndrewWinjum have you done this ?
     
    Last edited: Jun 20, 2017
  25. Offline

    AndrewWinjum

    I have my server working. How do I set my server ip? Right now it is running as a localhost.
     
    Last edited: Jun 22, 2017
Thread Status:
Not open for further replies.

Share This Page