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?
The preferred way to run programs at OS X startup is to create a daemon launchd, as described here .
launchd
mac os x "open program.jar" ( "-a" ), , , .
( script) > > " " > . script
:
cd /directory/to/jar java -jar Jar.jar
, , Jar.jar, Jar. .