This discussion is archived
2 Replies Latest reply: Apr 1, 2013 8:13 AM by 997300 RSS

Desktop shortcut not updating

997300 Newbie
Currently Being Moderated
We have created a jnlp file that creates a desktop shortcut. It create the shortcut and launches with no difficulties on any of the machines we are testing on. On my machine if we make any updates it updates fine. On two of our test machines (one running windows xp and the other a mac) the shortcut launches in offline mode but never gets the updated jnlp. Have tried moving the cache to a location with no whitespaces and that did not work either.

<jnlp spec="6.0+" codebase="http://ourMachine:15080/path/to/jnlp/" version="2.2" href="http://ourMachine:15080/path/to/jnlp/afpvwbDownload.jnlp">
<information>
<title>app</title>
<vendor>company name</vendor>
<homepage href="null"/>
<icon href="http://ourMachine:15080/path/afpvwbLauncher.png" kind="shortcut"/>
<shortcut online="true" install="false">
<desktop/>
</shortcut>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<update check="always" policy="prompt-update"/>
<resources>
<java href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
<jar href="http://ourMachine:15080/path/to/jnlp/first.jar" download="eager" main="true"/>
<jar href="http://ourMachine:15080/path/to/jnlp/second.jar" download="eager" main="false"/>
<jar href="http://ourMachine:15080/path/to/jnlp/third.jar" download="eager" main="false"/>
</resources>
<application-desc main-class="com.psd.display.AVA"/>
</jnlp>
  • 1. Re: Desktop shortcut not updating
    1000103 Newbie
    Currently Being Moderated
    I assume you're updating the version number? (e.g. 2.2 to 2.3)

    When you view the javaws resources (particularly the jnlp file in your case) in the control panel ("javaws -viewer" in command prompt will launch panel, click "view" on the general tab) do they show an entry in the "expired" column?

    If you are not setting the expires header when returning the file from the server javaws is perhaps assuming the old jnlp is still valid?
  • 2. Re: Desktop shortcut not updating
    997300 Newbie
    Currently Being Moderated
    We removed the version number and it works on most machines still have one where it does not updates but that seems to be an anomaly.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points