How to write a startup script for Mac OS X?

I created a jar file in java and I want the application to start automatically at boot time. I found that for this I need to write a shell script. What should be the shell script? Is there anything else I have to do so that the application starts automatically at boot time?

+5
source share
3 answers

The preferred way to run programs at OS X startup is to create a daemon launchd, as described here .

+11
source

mac os x "open program.jar" ( "-a" ), , , .

( script) > > " " > . script

+2

:

cd /directory/to/jar
java -jar Jar.jar

, , Jar.jar, Jar. .

0

All Articles