My craftbukkit/spigot server console closes immediately

Discussion in 'Bukkit Help' started by Ssebbe1, Jul 12, 2018 at 9:33 PM.

  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. @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
     
    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.
     
  4. 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.
     
  5. Online

    timtower Ninja on the waves Moderator

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

    Ssebbe1

    im on windows though?
     
  7. Online

    timtower Ninja on the waves Moderator

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

    Ssebbe1

    still closing instantly
     
  9. Online

    timtower Ninja on the waves Moderator

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

    Ssebbe1

    the cmd windows stays up, but the run console closes immediately
     
  11. Online

    timtower Ninja on the waves Moderator

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

    Ssebbe1

    what? none.. i dont understand?


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

    timtower Ninja on the waves Moderator

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

    Ssebbe1

    ok i ran the server command from cmd and it worked

    it keeps on stopping every time i start it
     
  15. Online

    timtower Ninja on the waves Moderator

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

    Ssebbe1

    Well i ran it again, and now it worked, it didnt stop the server and zero errors
     

Share This Page