Hi, I'm brand new and working through the beginner's guide and of course I'm stuck on the very first step. I'm trying to create a start shellscript, and using the instructions found here - https://www.spigotmc.org/wiki/spigot-installation/#mac-os-x. When I try to save the script, I get an error - Expected end of line, etc. but found """ Could someone help me with what I"m doing wrong?
#(slickthemi) Start Shell Script Mac Sonoma 14.5
1 messages · Page 1 of 1 (latest)
(slickthemi) Start Shell Script Mac Sonoma 14.5
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
Sure, can you provide your startup script?
Actually the script on this site is slightly weird, no idea why it's cding inside the directory
no
I suppose they're just making it different and leave the startup script outside of the directory
Anyway you can just do
#!/bin/bash
java -Xms1G -Xmx1G -jar paperclip.jar nogui
and it will be just fine
I tried that and now it says Expected end of line, etc. but found identifier
Did you switch paperclip.jar with the name of your jar?
oh no I kept it paper. I thought you had named yours paperclip. Do I need to rename the jar file to paperclip, or just type paperclip in the script?
No you have to rename it to your .jar file
same error
Possible yeah. I recommend using TextEdit or Visual Studio Code for it.
I also tried typing it into terminal through nano and nothing happened when I hit enter
I'm brand new at this, trying to learn. I don't know how to use textedit or visual studio code. I'm unfamiliar with how terminal works or how to do shell scripts, just piecemealing from Google searches.
Oh so you're also not familiar with macOS?
On nano you have to press CTRL+O and enter, then CTRL+X
from a coding perspective, I am not. I am familiar with working on a mac. I guess I didn't recognize I'd need to learn that in order to start learning Denizen for MC 😄
TextEdit is the default text editor on mac, that's why I asked lol
search for it in your Spotlight Search
I tried that and it brought me back to the same place with the same error
ok thx I'll try that, so I just write the same commands then save it to the folder with the .jar file as "start.sh"?
Yep
Technically you can use .rtf and rename it afterwards in finder. But ehh.. at this point why not just using VS Code.
You will need it anyways for Denizen scripting
sure, I'm happy to try that. Are there instructions in the beginners guide to find and download (i.e. version requirements, best sites, etc.), or is it straightforward search for it and download it?
Do you use brew?
in the guide?
No the tool. If you do not know what that is, you can ignore it.
Get vscode from here https://code.visualstudio.com/download
ok cool, downloading it now.
Also, tried renaming the file and it reverted back, so that didn't work :/
Can anyone tell me what I'm doing wrong here?
You need to run chmod +x <pathtoSHfile>
There is a missing space in your command that you executed
I tried putting a space after the x and it just returns to the next line. Is that where the missing space is?
I'm honestly wondering if I'm having this much trouble jsut setting up my test server if I'm built to learn Denizen
That should be fine now
wait, I wonder if I donwloaded the wrong java file. Should it be jdk or jre?
You have not even started the server
What's /Users/j-mo/Server/start.sh returning now
Is it still yelling no permission?
oh ok so I hit enter then it returns then do it again without the +x?
What is the command you put into your console?
originally chmod a+x <directory>
You only need to run chmod once, to make it runnable
then I just tried the command without the a+x, and it is saying Error: unable to access jarfile paperclip.jar
Can you cd to the folder
ah it's working!
Found the reason
thx for your help, whew! Was about to quit before even getting started!
Now the real part can begin lol
lol yeah finally
The executable does not retain the path if you run it from a different location
Thread Closing Reminder
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@main mirage