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.
Related videos on Youtube
Author by
harikrishnan
Updated on September 18, 2022Comments
-
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 about 11 yearsHow are you trying to start it? What's the error message?
-
harikrishnan about 11 yearsI tried double clickin on it but dosent open any damn thing! i just copy pasted the code from bukkit wiki!
-
qbi about 11 yearsOpen a terminal and enter the `java -Xms…' command? Does it print out anything? If yes, please add it to your question.
-
harikrishnan about 11 yearsWhat should be the path in .sh file if my server folder in in desktop?
-