1.6.0 Cache Viewer "install shortcut" option is disabled

Short Story: The 1.6.0 Cache Viewer does not allow me to un-installed or re-install shortcuts for web start applications.

Long Story: We are currently running Java 1.5.0_11 on Windows. We are testing the upgrade to Java 1.6.0_01. After doing the upgrade, clicking the web start shortcut (created by 1.5) failed. After some investigation I discovered that the conversion to 1.6.0 automatically updates shortcuts but only if they have not been moved. I had moved the shortcut before upgrading so I deleted it and opened the cache viewer to re-create it.In Java 1.5.0 this is easy: select the application entry, right-click, select un-install shortcuts, then select install shortcuts. In 1.6.0 the Install Shorts selection is disabled.

How to I get the cache viewer to recreate the shortcut?

Suggestions?

Thanks!

Tom

[850 byte] By [tom_a] at [2007-11-27 7:04:39]
# 1

If the shortcut has been moved, then it there is no way for webstart to find it to remove it. The shortcut will point to running javaws with the jnlp file in the cache (old cache still from 1.5.0). When the cache upgrade logic is invoked, javaws will se that the local applications property file indicates that there is a shortcut set, and will try to remove it and re-install it, it will find it cannot remove it (it no longer is where it was, same as if user had manually removed the shortcut).

I'd guess that that is why it dosn't install a new one, but this dosn't explain why the cache viewer cannot reinstall one.

The logic in the cache viewer is as follows:

If jnlp file indicates it is leagle to install shortcuts, then shortcut creation should be disabled if it is determined that a shortcut is present. If it would create both desktop and menu shortcut, it may be disabled if either is there. Is there a dekstop shortcut ? (possibly hidded in the unused shortcuts page) if so, removing it should re-enable install shortcut item in the cache viewer.

/Andy

dietz333a at 2007-7-12 18:55:58 > top of Java-index,Desktop,Deploying...
# 2

> If the shortcut has been moved, then it there is no

> way for webstart to find it to remove it. The

> shortcut will point to running javaws with the jnlp

> file in the cache (old cache still from 1.5.0). When

> the cache upgrade logic is invoked, javaws will se

> that the local applications property file indicates

> that there is a shortcut set, and will try to remove

> it and re-install it, it will find it cannot remove

> it (it no longer is where it was, same as if user had

> manually removed the shortcut).

> I'd guess that that is why it dosn't install a new

> one, but this dosn't explain why the cache viewer

> cannot reinstall one.

> The logic in the cache viewer is as follows:

> If jnlp file indicates it is leagle to install

> shortcuts, then shortcut creation should be disabled

> if it is determined that a shortcut is present. If

> it would create both desktop and menu shortcut, it

> may be disabled if either is there. Is there a

> dekstop shortcut ? (possibly hidded in the unused

> shortcuts page) if so, removing it should re-enable

> install shortcut item in the cache viewer.

>

> /Andy

Yes that was it. My jnlp has hints to create both a menu and desktop shortcut. Once I removed the shortcut from the Windows Start menu the "Install Shortcuts" was enabled. Makes sense. I guess what threw me off was that in Java 5 I could remove the shortcuts via the context menu in the cache viewer.

Thanks for your help.

Tom

tom_a at 2007-7-12 18:55:58 > top of Java-index,Desktop,Deploying...