Mac OSx Mountain Lion whenever i attempt to open my start.command i get: /Users/jake/Desktop/CraftBukkit/start.command: line 1: {rtf1ansiansicpg1252cocoartf1187cocoasubrtf340: command not found /Users/jake/Desktop/CraftBukkit/start.command: line 2: syntax error near unexpected token `}' /Users/jake/Desktop/CraftBukkit/start.command: line 2: `{\fonttbl\f0\fswiss\fcharset0 ArialMT;}' logout [Process completed] Any Ideas?
What is inside of start.command? If you're in terminal, give us the output of Code: cat start.command .
Ah. The original .rtf reads: #!/bin/bash cd "$( dirname "$0" )" java -Xmx1024M -Xms1024M -jar craftbukkit.jar I've given it permission to run with terminal using chmod a+x
It sounds to me like that's your problem. You may have renamed a .rtf (Rich Text Format) file as start.command. The errors that you're receiving ({\fonttbl\f0\fswiss\fcharset0 ArialMT;}) is the additional markup that exists in RTF files and is hidden when that file is opened in an RTF viewer. But when being read as plain-text, such as when you try to execute the file, it tries to read all that additional formatting and, of course, bash can't interpret it.
So what do you recommend I do? Sorry, bit of a newbie here. So i saved it as a plain text command, and now when I run it, i get: /Users/jake/Desktop/bukkit/start.command ; exit; Jakes-MacBook-Pro:~ jake$ /Users/jake/Desktop/bukkit/start.command ; exit; logout [Process completed] EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Try just opening up a terminal and running 'java -Xmx1024M -Xms1024M -jar craftbukkit.jar' from the same directory that your craftbukkit.jar file is located in.
Probably something like 'cd /Users/jake/Desktop/bukkit/'. So you'd open the terminal, run 'cd /Users/jake/Desktop/bukkit/', then run the java command, and see what happens.
It worked! Thanks a lot man. But wait! Would have to do the same thing everytime i wanted to run the server? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Nope, now you would delete the existing start.command file, create a blank text file called start.command, open that new file, and paste the following into it: Code: #!/bin/bash cd "$( dirname "$0" )" java -Xmx1024M -Xms1024M -jar craftbukkit.jar Make sure you then chmod a+x that new file, then you should be able to run it.