running a webstart app in windows bootup

Is there a way to get the path to the jnlp file from within the webstart, that executed the webstart app? I want to insert the jnlp into the windows registry so it runs on boot up.Thanks in advance.
[212 byte] By [JohnDunnea] at [2007-11-26 18:25:38]
# 1

> 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.

AndrewThompson64a at 2007-7-9 5:59:41 > top of Java-index,Desktop,Deploying...
# 2
Thanks for your reply Andrew. So this means that any shortcuts (such as those on windows Desktops) that point to an app could become useless at some time if someone was to move the application in the cache?
JohnDunnea at 2007-7-9 5:59:41 > top of Java-index,Desktop,Deploying...
# 3

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

dietz333a at 2007-7-9 5:59:41 > top of Java-index,Desktop,Deploying...
# 4

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\""

Caffeine0001a at 2007-7-9 5:59:41 > top of Java-index,Desktop,Deploying...