I've been working on a 1.7.10 forge server for my friends and I've run into a problem. If I just double click the forge jar file, it opens up the GUI and starts the server normally. The problem, however, is that (by default) this method only allocates 1GB of ram to the server. Definitely not enough for 10 players and 20 mods! Of course, the way to fix this is to just make a start.command file, put in the code, and change the ram variable to 4G and I'm all good to go!
This doesn't work.
Here's what I've tried:
I have used countless start.command and start.bat configurations, but they all end up with one of two outcomes. The first outcome that I get is "No such file or directory." The other outcome is "Unable to access jar file." I have already used chmod a+x to give permissions to the start.command file, I've verified that everything has read & write permissions, all my mods are fully functional, but I can't find the source of this problem.
According to the pastebin for config 2, it looks like you copied it from a Windows computer? Create another start.command file and copy paste from your spoiler 2. Hopefully, the website removes the additional Windows LFCR formatting.
Thanks for the help, but it's no use. I've already tried using the start.command text in my second spoiler and it gives me the same text as shown in the Pastebin.
Oh, and that file path is supposed to look like that. Both OSs use very similar file paths. Any other ideas?
I went ahead and ran the command via the console and it worked, but now all the start.command does is spit out a different error message now. Whenever I run it now, it gives me some "InvocationTargetException" error. Here's a pastebin: https://pastebin.com/JVhZY5jQ Any thoughts?
Gonna bump this. This is a big problem for server owners running their server on OSX machines and, as far as I can tell, no one has been able to fix this issue.
Could the problem be "nogui"? I'm trying to think of differences between just clicking the forge file and scripting the start. You did mention that clicking the file runs it w/o errors. It does sound as far-fetched as the "reinstall Java" solution that never seems to work.
In Windows, you can right-click a jar file and see the command used to invoke java. Can you do the same in Mac?
I've found this whole process to be insanely complicated and am realizing that I'm better off just running the server in the background of my gaming rig. I have plenty of ram to spare and my processor will be able to handle the extra load. Thank you, Brice (or Bryce XD), for all the help. It's greatly appreciated!
For those that may be reading this in the future:
Unfortunately, I could not find a fix for this, but if you find one please private message me and explain how you fixed this. I would really appreciate it.
Hello all!
I've been working on a 1.7.10 forge server for my friends and I've run into a problem. If I just double click the forge jar file, it opens up the GUI and starts the server normally. The problem, however, is that (by default) this method only allocates 1GB of ram to the server. Definitely not enough for 10 players and 20 mods! Of course, the way to fix this is to just make a start.command file, put in the code, and change the ram variable to 4G and I'm all good to go!
This doesn't work.
Here's what I've tried:
I have used countless start.command and start.bat configurations, but they all end up with one of two outcomes. The first outcome that I get is "No such file or directory." The other outcome is "Unable to access jar file." I have already used chmod a+x to give permissions to the start.command file, I've verified that everything has read & write permissions, all my mods are fully functional, but I can't find the source of this problem.
Can anyone help? Thanks in advance!
Start.command Configurations Used:
Config 1: java -Xms1024M -Xmx2048M -jar forge.jar nogui
Config 2:
Additional Info:
Computer: Mac mini (Late 2014)
RAM: 8GB
OS: Sierra 10.12.6
Java Versions:
Java: 9.0.1
SE Runtime: 9.0.1+11
HotSpot 64-Bit Server VM: 9.0.1+11 mixed mode
Forge Client: 1.7.10 (10.13.4.1558)
Forge Server: (Same as client)
Links:
"Unable to access jar file" console log file (config 1): https://pastebin.com/HeRMMXzX
"No such file or directory" console log file (config 2): https://pastebin.com/QN9U1Tfg
NO CRASH LOGS ARE GENERATED
According to the pastebin for config 2, it looks like you copied it from a Windows computer? Create another start.command file and copy paste from your spoiler 2. Hopefully, the website removes the additional Windows LFCR formatting.
Thanks for the help, but it's no use. I've already tried using the start.command text in my second spoiler and it gives me the same text as shown in the Pastebin.
Oh, and that file path is supposed to look like that. Both OSs use very similar file paths. Any other ideas?
Did you set the format to plain text in TextEdit?
Yup.
Well, since you can't save the file without the CR character getting appended to the lines, you may need to use the terminal.
https://stackoverflow.com/questions/17131249/how-to-solve-bad-interpreter-no-such-file-or-directory
I went ahead and ran the command via the console and it worked, but now all the start.command does is spit out a different error message now. Whenever I run it now, it gives me some "InvocationTargetException" error. Here's a pastebin: https://pastebin.com/JVhZY5jQ Any thoughts?
Gonna bump this. This is a big problem for server owners running their server on OSX machines and, as far as I can tell, no one has been able to fix this issue.
One more bump for luck's sake. Hopefully, someone able to help me will stumble upon this...
Could the problem be "nogui"? I'm trying to think of differences between just clicking the forge file and scripting the start. You did mention that clicking the file runs it w/o errors. It does sound as far-fetched as the "reinstall Java" solution that never seems to work.
In Windows, you can right-click a jar file and see the command used to invoke java. Can you do the same in Mac?
I've found this whole process to be insanely complicated and am realizing that I'm better off just running the server in the background of my gaming rig. I have plenty of ram to spare and my processor will be able to handle the extra load. Thank you, Brice (or Bryce XD), for all the help. It's greatly appreciated!
For those that may be reading this in the future:
Unfortunately, I could not find a fix for this, but if you find one please private message me and explain how you fixed this. I would really appreciate it.