This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
I have my web start app working fine and now need to go a bit beyond the basics\conventional.
Basically I would like to programmatically - in my web start app - retrieve the location of the client cached jnlp file* as stored in the auto created desktop shortcut target (on windows at least); usually as something like:
It would appear the IntegrationService is almost what I need with its methods to determine if the jnlp app has desktop or menu shortcuts. However the IntegrationService has very limited exposed functionality.
Does anyone know the best way to do this? The information must be available somewhere as JWS created the shortcut. A quick look through the source code indicates I may have to make use of the com.sun.deploy.cache package myself - but I am hoping there is another easier, cleaner more obvious way.
*The reason I want the shortcut target is that armed with this information it is possible to programatically schedule my web start app to ..start automatically via the Windows task scheduler (via at or schtasks command). I can schedule the web start app manually at the moment in this way, but ideally would like the web start app to schedule itself.