2 Replies Latest reply on Apr 1, 2013 3:13 PM by 997300

    Desktop shortcut not updating

      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">
      <vendor>company name</vendor>
      <homepage href="null"/>
      <icon href="http://ourMachine:15080/path/afpvwbLauncher.png" kind="shortcut"/>
      <shortcut online="true" install="false">
      <update check="always" policy="prompt-update"/>
      <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"/>
      <application-desc main-class="com.psd.display.AVA"/>
        • 1. Re: Desktop shortcut not updating
          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
            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.