Solved Start.command

Discussion in 'Bukkit Help' started by indianablob, Jan 11, 2013.

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

    indianablob

    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?
     
  2. Offline

    ifly6

    give us the actual start.command........
     
  3. Offline

    indianablob

    what do you mean?
     
  4. Offline

    jkcclemens

    What is inside of start.command? If you're in terminal, give us the output of
    Code:
    cat start.command
    .
     
  5. Offline

    indianablob

    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
     
  6. Offline

    c0mp

    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.
     
  7. Offline

    indianablob

    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.
     
    Last edited by a moderator: Jul 8, 2016
  8. Offline

    c0mp

    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.
     
  9. Offline

    indianablob

    Like I said, I'm a newbie. How do i run something from the same directory? :confused:
     
  10. Offline

    c0mp

    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.
     
  11. Offline

    indianablob

    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.
     
    Last edited by a moderator: Jul 8, 2016
  12. Offline

    c0mp

    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.
     
  13. Offline

    indianablob

    Works! Thanks a lot, you're the best.
     
  14. Offline

    c0mp

    No problem, glad to hear it's working.
     
    indianablob likes this.
Thread Status:
Not open for further replies.

Share This Page