"Learn Coding with Minecraft" API setup problem: "zsh: exec format error:"

Using the "Start_Server" exec file provided in .zip of set up files for MacOS, and after installing Java, BuildTools, & the Spigot jar files, etc., I try to run "Start_Server" exec file from the command line using the file path and it gives me this error:

zsh: exec format error: /Users/[xxxx]/Documents/MinecraftPython/MinecraftToolsMac/Start_Server

[Process completed]

I had to use the terminal to make the "Start_Server" file executable, but when I try to run it I get that. Any ideas what to do are appreciated.

I just want to get my server initiated so I can start coding with Minecraft...


Apparently that file got garbled when it was zipped up & made available for download (here's the download source). It's supposed to be an alias to the file Start.command in the Server subdirectory, but the metadata that identifies it as an alias wasn't included so the Finder doesn't know what to do with it.

The simplest solution is to just open Server, and double-click on Start.command instead. If you want, you can make a replacement alias in the Finder (select Start.command, then choose File menu > Make Alias or press Command-L), rename the alias to Start_Server, and move it to the outer directory (replacing the broken file).

If you want to get fancy, you can reattach the missing metadata in Terminal:

xattr -wx com.apple.FinderInfo '61 6C 69 73 4D 41 43 53 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00' ~/Documents/MinecraftPython/MinecraftToolsMac/Start_Server

(This attaches the type code "alis" and the creator code "MACS" to the file, which'll identify it as an alias to a file. Aliases to other kinds of objects -- folders, applications, servers, etc -- have different codes.)

If you have a way to send feedback to the author/maintainers, you should let them know to fix it. Creating the zip file with the Finder should include the relevant metadata (although I'd actually recommend using a symlink instead of an alias for this).