title: Java Web-Start Desktop Icon Lauch Error Unable to Load Resources
body: <p>I have created a JavaFx webstart application with ant script and enabled desktop shortcut.
  This application signed and given all permissions and hosted in a local server for testing.
  when it is launch in the system through web start link the icon got created on the desk top in users machine along with application started.
  Now the issue is once the application is closed and next time launched from the desktop shortcut; the applications starts and after a while the desktop icon will be refreshed all it self. Now if i try to lauch the application again from the shortcut it fails with the following error.</p>
  <blockquote>
  <p>Application Error</p>
  <p>Unable to launch the application.</p>
  </blockquote>
  <p>The details [More Information shows]</p>
  <blockquote>
  <p>Error: unable to load resource:</p>
  </blockquote>
  <p>(and points to the jnlp in the local machine)</p>
  <blockquote>
  <p>java.io.FileNotFoundException:
  C:\Users\XXXX\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\42\Sample.jnlp
  (The system cannot find the file specified)</p>
  </blockquote>
  <p>Now the problem is even for the first launch the file is not there in the given path but it launched. This issue will be after the icon is refreshed.</p>
  <p>Any help/solution greatly appreciated.</p>
  <hr />
  <h2>Question Updated with Few Results</h2>
  <p>When tested the JNLP with the  JaNeLA
  I got the few errors</p>
  <p>The errors show following syntax as unrecognized.</p>
  <pre><code>&lt;jfx:javafx-runtime&gt; 
  </code></pre>
  <p>Here is the JNLP</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;jnlp spec=&quot;1.0&quot; xmlns:jfx=&quot;http://javafx.com&quot; href=&quot;SAmpleAppp.jnlp&quot;&gt;
    &lt;information&gt;
      &lt;title&gt;SAmpleAppp&lt;/title&gt;
      &lt;vendor&gt;XXX&lt;/vendor&gt;
      &lt;description&gt;XXX&lt;/description&gt;
      &lt;offline-allowed/&gt;
    &lt;/information&gt;
    &lt;resources&gt;
      &lt;jfx:javafx-runtime version=&quot;2.2+&quot; href=&quot;http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp&quot;/&gt;
    &lt;/resources&gt;
    &lt;resources&gt;
      &lt;j2se version=&quot;1.6+&quot; href=&quot;http://java.sun.com/products/autodl/j2se&quot;/&gt;
      &lt;jar href=&quot;SAmpleAppp.jar&quot; size=&quot;591973&quot; download=&quot;eager&quot; /&gt;
      &lt;jar href=&quot;libs/guava-13.0.1.jar&quot; size=&quot;1914716&quot; download=&quot;eager&quot; /&gt;
      &lt;jar href=&quot;libs/log4j-1.2.17.jar&quot; size=&quot;490849&quot; download=&quot;eager&quot; /&gt;
      &lt;jar href=&quot;libs/plexus-utils-3.0.8.jar&quot; size=&quot;234548&quot; download=&quot;eager&quot; /&gt;
    &lt;/resources&gt;
  &lt;security&gt;
    &lt;all-permissions/&gt;
  &lt;/security&gt;
    &lt;shortcut&gt;&lt;desktop/&gt;&lt;/shortcut&gt;
    &lt;applet-desc  width=&quot;1085&quot; height=&quot;750&quot; main-class=&quot;com.javafx.main.NoJavaFXFallback&quot;  name=&quot;SAmpleAppp&quot; &gt;
      &lt;param name=&quot;requiredFXVersion&quot; value=&quot;2.2+&quot;/&gt;
    &lt;/applet-desc&gt;
    &lt;jfx:javafx-desc  width=&quot;1085&quot; height=&quot;750&quot; main-class=&quot;XXXX.XXXX.XXXX.SAmpleAppp&quot;  name=&quot;SAmpleAppp&quot; /&gt;
    &lt;update check=&quot;background&quot;/&gt;
  &lt;/jnlp&gt;
  </code></pre>
  <p>Did you see any error???
  Thanks.</p>