Jump to content

Why can't I use a server start file on MacOS?


DeEskalator

Recommended Posts

I've createt an Forge Server on my Mac.

1332060905_Bildschirmfoto2020-03-25um14_35_45.png.c1be32905718b0c874b4957b36f6a289.png

 

I'm able to start the server with the highlighted .jar-file and it works just fine.

347880455_Bildschirmfoto2020-03-25um14_37_18.thumb.png.871e7e34515dcf9f9f29148807a0db7f.png

 

My problem is, when I try to start my server with this command file:

1128535949_Bildschirmfoto2020-03-25um14_39_12.png.29a907525200cc9b26e3c084baea8b23.png

... it refuses to start. I always become this error message: https://pastebin.com/0ykQFFYV

 

I'm fine with starting the server with the .jar file, but I wan't to locate more RAM to the Server. Is there a way how I can fix the start file or locate more RAM somehow different?

Thanks in advance for your replies!

Link to comment
Share on other sites

I would say add a line "exec java -version" (without the quotes) right before the line that starts your server, and see what it tells you for a version before the error message that shows up.

 

*edit: please note, I don't use a mac whatsoever, so I'm not 100% sure how things work, but I am very familiar with linux.

Edited by Ugdhar
Link to comment
Share on other sites

Sorry that I'm so stupid, but what should i write exactly?

#!/bin/bash
cd "$(dirname "$0")"
exec java -Xmx1G -Xms4G -jar forge.jar
exec java -version

Should I just use this and replace the term version with my version.

 

On Windows, there is simmalar file wich includes the file path to java. On Mac this would be this /Users/jakob/Library/Application Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/java

Does that help you in any way to help me? ;)

Link to comment
Share on other sites

what if you put the java -version line first, I know it's not going to fix it, I just want to know what version of java your script is trying to use. and it should output it.

It needs to be java 8, and just having java 8 does not mean that's the one it's using.

Link to comment
Share on other sites

Yes I had understodd that it wouldn't fix my prob. It is great that you take so much time to figure out what my problem is.

This is what happens if I put the -version term first.

222737756_Bildschirmfoto2020-03-25um15_32_56.png.cefb9e1673c77aeb884b20962ec8c868.png

 

PS: I tried to start the "Vanilla" minecraft_server.1.12.2.jar with the file and it worked. Don't know why the forge server doesen´t starts

Link to comment
Share on other sites

You need to install Java 8, and then more than likely tell your system to use that as the default java, or directly specify the java you wish to use when you launch the server.

As I don't have nor use a mac, I'm not 100% sure how to tell you how to proceed with doing that, google probably knows! :)

Link to comment
Share on other sites

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.