My craftbukkit/spigot server console closes immediately

Discussion in 'Bukkit Help' started by Ssebbe1, Jul 12, 2018.

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

    Ssebbe1

    So my server console closes immediately but the server keeps on going and there is no errors in the log. the only problem is that the console wont show up. please help!
     
  2. Offline

    Zombie_Striker

    @Ssebbe1
    Can you post how you run your server? If you use a .bat file, can you post its contents?
     
  3. Offline

    Ssebbe1

    Code:
    @ECHO OFF
    "%ProgramFiles%\Java\jre1.8.0_171\bin\java.exe" -Xmx1024M -Xms1024M -jar spigot.jar
    PAUSE
    ive tried out many different codes
     
  4. Offline

    Zombie_Striker

    1. Why are you specifically targeting the java.exe file? why not just use "java -Xmx...."
    2. The -Xmx tag determines the max amount of memory space the server can use. Unless you have a specific reason for limiting its memory, remove that flag.
     
  5. Offline

    Ssebbe1

    still doesnt work:/
    Code:
    @ECHO OFF
    Java -Xms1024M -jar spigot.jar
    PAUSE
    ive tried every run.bat code i could find

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  6. Offline

    timtower Administrator Administrator Moderator

    @Ssebbe1 Start a terminal on its own, run the server. Terminal should stay open this time.
     
  7. Offline

    Ssebbe1

    im on windows though?
     
  8. Offline

    timtower Administrator Administrator Moderator

    @Ssebbe1 Windows has cmd, it is a terminal.
     
  9. Offline

    Ssebbe1

    still closing instantly
     
  10. Offline

    timtower Administrator Administrator Moderator

    @Ssebbe1 The entire CMD window after you opened it by hand?
     
  11. Offline

    Ssebbe1

    the cmd windows stays up, but the run console closes immediately
     
  12. Offline

    timtower Administrator Administrator Moderator

    @Ssebbe1 Which command are you executing then?
     
  13. Offline

    Ssebbe1

    what? none.. i dont understand?


    EDIT: i tried to start the run.bat file with cmd and the same thing happend
     
  14. Offline

    timtower Administrator Administrator Moderator

    @Ssebbe1 In the cmd window.
    Navigate to the server directory.
    Run the java command in the same window.
    Don't double click anything.
     
  15. Offline

    Ssebbe1

    ok i ran the server command from cmd and it worked

    it keeps on stopping every time i start it
     
  16. Offline

    timtower Administrator Administrator Moderator

    @Ssebbe1 It should give messages then, please post those messages.
     
  17. Offline

    Ssebbe1

    Well i ran it again, and now it worked, it didnt stop the server and zero errors
     
Thread Status:
Not open for further replies.

Share This Page