title: Unable to launch Java JNLP application after downloading
body: <p>I would like to include my java application which I save it as jar file inside web browser. I've tried the Java Web Start tutorial and create the Java JNLP application. I also follow tutorials based on here: <a href="http://transvar.org/6112/WebStartAppInstruction.pdf" rel="nofollow">http://transvar.org/6112/WebStartAppInstruction.pdf</a></p>
  
  <p>I've tried all the steps but after I download the Launch.jnlp and try to launch it error such "Unable to Launch the application" pop up. I clicked the Details button to check where did I done wrong. </p>
  
  <p>Here's the error (Exception tab):</p>
  
  <pre><code>com.sun.deploy.net.FailedDownloadException: Unable to load resource: file:/C:/Users/nurulazila/Documents/NetBeansProjects/fyp_steganalysis/dist/$$codebase/launch.jnlp
  at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
  at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
  at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
  at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
  at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
  at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
  at com.sun.javaws.Launcher.launch(Unknown Source)
  at com.sun.javaws.Main.launchApp(Unknown Source)
  at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
  at com.sun.javaws.Main.access$000(Unknown Source)
  at com.sun.javaws.Main$1.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>Wrapped Exception Tab:</p>
  
  <pre><code>java.io.FileNotFoundException: C:\Users\nurulazila\Documents\NetBeansProjects\fyp_steganalysis\dist\$$codebase\launch.jnlp (The system cannot find the path specified)
  at java.io.FileInputStream.open(Native Method)
  at java.io.FileInputStream.&lt;init&gt;(Unknown Source)
  at java.io.FileInputStream.&lt;init&gt;(Unknown Source)
  at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
  at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
  at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
  at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
  at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
  at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
  at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
  at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
  at com.sun.javaws.Launcher.launch(Unknown Source)
  at com.sun.javaws.Main.launchApp(Unknown Source)
  at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
  at com.sun.javaws.Main.access$000(Unknown Source)
  at com.sun.javaws.Main$1.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>My code (Launch.jnlp):</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;jnlp codebase="$$codebase" href="launch.jnlp" spec="1.0+"&gt;
      &lt;information&gt;
          &lt;title&gt;fyp_steganalysis&lt;/title&gt;
          &lt;vendor&gt;nurulazila&lt;/vendor&gt;
          &lt;homepage href="www.google.com"/&gt;
          &lt;description&gt;fyp_steganalysis&lt;/description&gt;
          &lt;description kind="short"&gt;fyp_steganalysis&lt;/description&gt;
      &lt;/information&gt;
      &lt;update check="always"/&gt;
      &lt;resources&gt;
          &lt;j2se version="1.7+"/&gt;
          &lt;jar href="fyp_steganalysis.jar" main="true"/&gt;
      &lt;/resources&gt;
      &lt;application-desc main-class="steganalysisUI"&gt;
      &lt;/application-desc&gt;
  &lt;/jnlp&gt;
  </code></pre>
  
  <p>Launch.HTML:</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Test page for launching the application via JNLP&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h3&gt;Test page for launching the application via JNLP&lt;/h3&gt;
          &lt;script src="http://java.com/js/deployJava.js"&gt;&lt;/script&gt;
          &lt;script&gt;
              deployJava.createWebStartLaunchButton("launch.jnlp")
          &lt;/script&gt;
          &lt;!-- Or use the following link element to launch with the application --&gt;
          &lt;!--
          &lt;a href="launch.jnlp"&gt;Launch the application&lt;/a&gt;
          --&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm really new to Java JNLP. Hoping to get some help here. </p>