[p]Ok guys- I am NOT great with computers, but I want to create a minecraft server on my 2020 macbook pro. My java is up to date with Java 8 so I went to minecraft.net to download the minecraft server jar link. When I do this, there's just an icon of a coffee mug labeled server.jar that comes up and I can't open it. I moved the server.jar coffee mug icon into a new folder I put on my desktop. When I click on the coffee mug icon, I can see the iCloud Drive load something, and when I check on it and go to TextEdit there's a file that says start.command.rtf.[/p]
[p]When I click on that it says: #!/bin/bash/ java -Xmx1024M -Xms1024M -jar minecraft_server.1.16.5.jar nogui (FYI- I copy and pasted the command that was on minecraft.net just below the server jar link but when I hit enter, nothing happens) Again, my computer knowledge is very basic. [/p]
[p]I've tried to run this command from terminal app: java -Xmx1024M -Xms1024M -jar minecraft_server.1.16.5.jar nogui but it just says:[/p]
Error: Unable to access jarfile minecraft_server.jar [/p]
It also says my first and last name@macbook-pro ~ %[/p]
I have no clue what to do. I'm sorry if I didn't explain my issue good enough. If there is any more info you guys need I'll try to find the answer for you. Thanks everyone!! [/p]
[p]Also, idk why it put the [/p] and [p] on my post so just ignore those lol [/p]
You saved the start file as RTF, that's not right. I just tried TextEdit, it doesn't let me save as a basic no frills text file so don't use that. Delete the file you made. I don't know OSX well. I have a Macbook Pro, but I only use it occasionally for work stuff. I just went through the steps keystroke by keystroke to make it work. This assumes you want 1 GB of RAM for the server and that the folder on the desktop is named "Server". Don't assume new line = press enter, only press enter when I say. Things in { } mean hit that key, don't actually type that. Open terminal and type:
cd Desktop/Server {ENTER}
vi go.command {ENTER}
i
#!/bin/bash {ENTER}
java -Xms1G -Xmx1G -jar minecraft_server.1.16.5.jar nogui
{ESC}
:
wq {ENTER}
chmod +x go.command {ENTER}
echo eula=true>eula.txt {ENTER}
./go {TAB} {ENTER}
That should work, assuming your jar is named minecraft_server.1.16.5.jar and you have the Server folder on the desktop with said jar in it.
It appears that my jar file is only named server.jar This is what I believe my main problem is, I can't seem to get the correct jar file because it doesn't say minecraft_server.1.16.5.jar Know of any ways I can get the correct jar file? I appreciate your comment. I followed your instructions but it says Error: Unable to access jarfile minecraft_server.1.16.5.jar (I think it's all coming down to me not having the correct jar file.)
You saved the start file as RTF, that's not right. I just tried TextEdit, it doesn't let me save as a basic no frills text file so don't use that. Delete the file you made. I don't know OSX well. I have a Macbook Pro, but I only use it occasionally for work stuff. I just went through the steps keystroke by keystroke to make it work. This assumes you want 1 GB of RAM for the server and that the folder on the desktop is named "Server". Don't assume new line = press enter, only press enter when I say. Things in { } mean hit that key, don't actually type that. Open terminal and type:
cd Desktop/Server {ENTER}
vi go.command {ENTER}
i
#!/bin/bash {ENTER}
java -Xms1G -Xmx1G -jar minecraft_server.1.16.5.jar nogui
{ESC}
:
wq {ENTER}
chmod +x go.command {ENTER}
echo eula=true>eula.txt {ENTER}
./go {TAB} {ENTER}
That should work, assuming your jar is named minecraft_server.1.16.5.jar and you have the Server folder on the desktop with said jar in it.
It appears that my jar file is only named server.jar This is what I believe my main problem is, I can't seem to get the correct jar file because it doesn't say minecraft_server.1.16.5.jar Know of any ways I can get the correct jar file? I appreciate your comment. I followed your instructions but it says Error: Unable to access jarfile minecraft_server.1.16.5.jar (I think it's all coming down to me not having the correct jar file.)
Mate you need to just rename the .jar or change your startup script...
I changed the name to minecraft_server.1.16.5.jar and still nothing. I feel like it's just the jar file that's messed up. What I think the jar file should look like is a coffee mug on a piece of paper. But my jar file is just the coffee mug. No piece of paper behind it. Not sure if this makes any sense, I'm working with a mac lol every tutorial I've seen has the coffee mug on a piece of paper.
You put “Destop/Server” as a path but your screenshot shows “Minecraft Server”. Get rid of Minecraft in path name and avoid spaces in folder names when scripts are involved, it saves a lot of troubles.
Also I can't recall if OSX hides extensions or not, but if it does then the file may really be named minecraft_server.1.16.5.jar.jar on your drive in that case.
Ultimately the filename is irrelevant... you could call it MySuperAwesomeServerFile.jar and it would work perfectly well, lol. You just have to be 100% sure the name of the file on the drive exactly matches the name in the startup script, and that at time of execution you are in the same folder as said file.
You put “Destop/Server” as a path but your screenshot shows “Minecraft Server”. Get rid of Minecraft in path name and avoid spaces in folder names when scripts are involved, it saves a lot of troubles.
Also I can't recall if OSX hides extensions or not, but if it does then the file may really be named minecraft_server.1.16.5.jar.jar on your drive in that case.
Ultimately the filename is irrelevant... you could call it MySuperAwesomeServerFile.jar and it would work perfectly well, lol. You just have to be 100% sure the name of the file on the drive exactly matches the name in the startup script, and that at time of execution you are in the same folder as said file.
Do you guys think it has anything to do with the actual jar file not downloading correctly? All the tutorials I've seen the coffee mug is on a piece of paper, and mine isn't. Uggggg I'm sorry guys this is my first time doing any of this computer stuff, I appreciate everyone on this thread being nice and helpful. <3 I've uploaded a screenshot of a tutorial of what the jar file should look like vs mine in the previous screenshot I've posted
Where is says "minecraft_server.1.16.5.jar" above, substitute the name of your server jar file - include the entire path. The easiest way to do that in a terminal window is to drag the server file into the terminal window where you're typing its name and it will insert all that information for you. That should start a server.
[p]When I click on that it says: #!/bin/bash/ java -Xmx1024M -Xms1024M -jar minecraft_server.1.16.5.jar nogui (FYI- I copy and pasted the command that was on minecraft.net just below the server jar link but when I hit enter, nothing happens) Again, my computer knowledge is very basic. [/p]
[p]I've tried to run this command from terminal app: java -Xmx1024M -Xms1024M -jar minecraft_server.1.16.5.jar nogui but it just says:[/p] Error: Unable to access jarfile minecraft_server.jar [/p] It also says my first and last name@macbook-pro ~ %[/p]
I have no clue what to do. I'm sorry if I didn't explain my issue good enough. If there is any more info you guys need I'll try to find the answer for you. Thanks everyone!! [/p] [p]Also, idk why it put the [/p] and [p] on my post so just ignore those lol [/p]
You saved the start file as RTF, that's not right. I just tried TextEdit, it doesn't let me save as a basic no frills text file so don't use that. Delete the file you made. I don't know OSX well. I have a Macbook Pro, but I only use it occasionally for work stuff. I just went through the steps keystroke by keystroke to make it work. This assumes you want 1 GB of RAM for the server and that the folder on the desktop is named "Server". Don't assume new line = press enter, only press enter when I say. Things in { } mean hit that key, don't actually type that. Open terminal and type:
That should work, assuming your jar is named minecraft_server.1.16.5.jar and you have the Server folder on the desktop with said jar in it.
It appears that my jar file is only named server.jar This is what I believe my main problem is, I can't seem to get the correct jar file because it doesn't say minecraft_server.1.16.5.jar Know of any ways I can get the correct jar file? I appreciate your comment. I followed your instructions but it says Error: Unable to access jarfile minecraft_server.1.16.5.jar (I think it's all coming down to me not having the correct jar file.)
It appears that my jar file is only named server.jar This is what I believe my main problem is, I can't seem to get the correct jar file because it doesn't say minecraft_server.1.16.5.jar Know of any ways I can get the correct jar file? I appreciate your comment. I followed your instructions but it says Error: Unable to access jarfile minecraft_server.1.16.5.jar (I think it's all coming down to me not having the correct jar file.)
Mate you need to just rename the .jar or change your startup script...
I changed the name to minecraft_server.1.16.5.jar and still nothing. I feel like it's just the jar file that's messed up. What I think the jar file should look like is a coffee mug on a piece of paper. But my jar file is just the coffee mug. No piece of paper behind it. Not sure if this makes any sense, I'm working with a mac lol every tutorial I've seen has the coffee mug on a piece of paper.
Post screenshot of your server folder.
You put “Destop/Server” as a path but your screenshot shows “Minecraft Server”. Get rid of Minecraft in path name and avoid spaces in folder names when scripts are involved, it saves a lot of troubles.
Agreed. Spaces are the devil, lol.
Also I can't recall if OSX hides extensions or not, but if it does then the file may really be named minecraft_server.1.16.5.jar.jar on your drive in that case.
Ultimately the filename is irrelevant... you could call it MySuperAwesomeServerFile.jar and it would work perfectly well, lol. You just have to be 100% sure the name of the file on the drive exactly matches the name in the startup script, and that at time of execution you are in the same folder as said file.
Do you guys think it has anything to do with the actual jar file not downloading correctly? All the tutorials I've seen the coffee mug is on a piece of paper, and mine isn't. Uggggg I'm sorry guys this is my first time doing any of this computer stuff, I appreciate everyone on this thread being nice and helpful. <3 I've uploaded a screenshot of a tutorial of what the jar file should look like vs mine in the previous screenshot I've posted
You really haven't gone far enough to determine if the .jar file is corrupt.
Open a terminal window.
java -Xmx1024M -Xms2048M -jar minecraft_server.1.16.5.jar nogui
Where is says "minecraft_server.1.16.5.jar" above, substitute the name of your server jar file - include the entire path. The easiest way to do that in a terminal window is to drag the server file into the terminal window where you're typing its name and it will insert all that information for you. That should start a server.