Minecraft server (Bukkit) .sh bash file not opening

6,640

The script has to be in the same path then your craftbuckit.jar. Alternatively you could add the absolute path to the script:

#!/bin/bash
java -Xms1024M -Xmx1024M -jar /path/to/craftbukkit.jar -o true

Also you should execute the script in a terminal to be able to see the output. I think the minecraft server starts an admin console in the terminal. I don't know how it will behave if you don't run it in a terminal. At best you will have problems to gracefully stop the server later on and have no access to the admin console.

Share:
6,640

Related videos on Youtube

harikrishnan
Author by

harikrishnan

Updated on September 18, 2022

Comments

  • harikrishnan
    harikrishnan over 1 year

    My Minecraft server (Bukkit) .sh bash file is not opening! I did make it executable (in permissions, I clicked "anyone" for executable). Here's the code:

    #!/bin/bash
    cd "$( dirname "$0" )"
    java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true
    

    The server runs fine when I put the code in Terminal but not when it's in a .sh file.

    I am using Lubuntu 12.10.

    • André Stannek
      André Stannek about 11 years
      How are you trying to start it? What's the error message?
    • harikrishnan
      harikrishnan about 11 years
      I tried double clickin on it but dosent open any damn thing! i just copy pasted the code from bukkit wiki!
    • qbi
      qbi about 11 years
      Open a terminal and enter the `java -Xms…' command? Does it print out anything? If yes, please add it to your question.
    • harikrishnan
      harikrishnan about 11 years
      What should be the path in .sh file if my server folder in in desktop?