Minecraft server startup help

minecraft-java-editionminecraft-java-edition-server

I have been able to download the mincraft server file. minecraft_server.1.7.10.jar version

However, I have having difficulty running it. According to the tutorial, it says to run:
-Xmx1024M -Xms1024M -jar minecraft_server.jar nogui by saving it into a notepad, placing it in the same folder as the server, and double clicking it.

I did this by using the rich text document as I am on a Mac. No results.

So i tried running -Xmx1024M -Xms1024M -jar minecraft_server.jar. no results.

I am stuck, and not sure what to do next. anyone help please?

UPDATE: Thanks to everyone who posted! By sorting out through identified problems and more tutorials, the server is up and running. Although I do need to work out some of the details, thanks again to everyone.

Best Answer

Putting it in a rich text document is not going to run it. You do have to use the full command, java -Xmx1024M -Xms1024M -jar minecraft_server.1.7.10.jar nogui, but you need to either type it into terminal or put it in a .sh file.