> Is there a way to get the path to the jnlp file ..
Now, or in ten minutes time?
In that time, I as a user, or my system
adminstrator, might have moved the
web start cache location form where
it was, using the preferences console.
Sun also makes no guarantees where
the cache will be located.
I advise against any using any strategy
that relies on knowing.
If a later version of java web start (such as 1.6) moves the location or format of the cache, it will update the shortcuts for you the first time it runs.
If you change the cache location from the control panel, the shortcuts should still work (since they point to the jnlp file still in the old cache), but invoking shortcut will cause the app to be re-downloaded into the new cache location.
/Andy
There is no reason to point to the cache. Just use javaws.exe and specify the url to the application on the command line. Here is an example of a Windows Startup registry entry.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"YourStartupApp"="javaws.exe -Xnosplash \"http://yourdomain.com/code/yourstartupapp/launch.jnlp\""