broken command

Joined
Apr 22, 2012
Messages
2
Reaction score
0
Hey guys,
im trying to install a minecraft server mod, and the last step is to sun this command:

#!/bin/bash
cd "$( dirname "$0" )"
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

---but it keeps giving me this:

Last login: Sat Apr 21 19:47:31 on ttys000
/Users/wsb/Desktop/server/Run.command ; exit;
henrys-macbook:~ wsb$ /Users/wsb/Desktop/server/Run.command ; exit;
-bash: /Users/wsb/Desktop/server/Run.command: /bin/bash^M: bad interpreter: No such file or directory
logout

[Process completed]

im not too experienced with shell commands
can i get some help please?
 
Joined
Nov 26, 2010
Messages
3,558
Reaction score
52
In terminal
cd to the directory with minecraft_server.jar

then paste
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
enter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top