Run App On OS Startup
I'm looking for a way to run a Java Web Start app on OS startup. I don't think it's possible to implement a cross-platform solution, but any help on even a single OS would be awesome.
I've mostly worked on getting it to run automatically on Mac OS. I put a .plist in /Library/LaunchAgents and I can get the Cache Viewer to start up if I set the string "javaws" as the only entry in the ProgramArguments array in the .plist. If I set the URL of my application as the second argument in that array, the trust/don't trust dialog comes up for my app when a user logs in, but the application never starts up after I click trust.
Any help would be much appreciated, whether it's OS X or Windows/Unix.
[719 byte] By [
mrgordona] at [2007-11-26 18:23:53]

# 1
Using Win XP running Java 6 (cannot speak
for other OS/version), it can be as easy as
to place a copy of the desktop shortcut (or
menu item, I presume) into the Startup
menu.
This is the (small, sandboxed) app. I tried
it with. http://www.physci.org/jws/#bs
You might use an <installer> to get a
shortcut into the start-up menu, but note
the menu items and desktop shortcuts
may not have been created at the time
the installer runs.
# 2
on windows, yes , you can speciufy the submenu "Startup" and will be run on this users login:
<shortcut>
<menu submenu="Startup"/>
</shortcut/>
there are enhancements in the queue for a future release to both make this available cross-platform, and to provide mechinism to run it as a service.
/Andy
# 4
You can use os, arch, and locale attributes of the <information> element, but only since JNLP Spec 1.5.0.see the dtd, spec, or the table of jnlp elements at the beginning