I'm new to OS X and I'm trying to create an application wrapper for a shell script that starts a media server(Red5)
I'm trying to wrap the Red5 server starter script (
red5.sh) into an
.app executable using Platypus.
The Platypus Documentation says that
You can add a list of files to be copied into the Resources folder of your application bundle. These files can then be used by your script. The default current working directory of your script will be this folder, so you should be able to access them directly from your script's CWD.
When executed normally from the terminal (is using
./red5.sh) the server starts up fine, but when I create the
.app file (after having set the script's CWD in the "Files to be bundled" field of Platypus, the resulting
.app file doesn't run when double clicked upon.
It gives the following error
Error: Could not find or load main class
I'm not sure what I'm doing wrong, but I think it's something to do with the bundling the right directory.