title: JNLP - How can i deploy my application which runs and create a desktop icon for launching the a.jar?
body: <p>How can i fix this error? I have my deploy dist with all jar files included in my webserver. But once i press icon.jnlp it says that error.</p>
  
  <p>icon.jnlp:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;jnlp codebase="http://localhost:007/dist" href="icon.jnlp" spec="1.0+"&gt;
    &lt;information&gt;
      &lt;title&gt;Sample&lt;/title&gt;
      &lt;vendor&gt;Sample&lt;/vendor&gt;
      &lt;homepage href=""/&gt;
      &lt;description&gt;Sample&lt;/description&gt;
      &lt;description kind="short"&gt;Sample&lt;/description&gt;
  
      &lt;icon href="load.png" kind="splash"/&gt;
      &lt;icon href="logo.png" kind="default"/&gt;
  
      &lt;shortcut online="false"&gt;
        &lt;desktop/&gt;
          &lt;menu submenu="Sample"&gt;
            &lt;menu submenu="Sample Managing System"/&gt;
          &lt;/menu&gt;
      &lt;/shortcut&gt;
      &lt;offline-allowed/&gt;
    &lt;/information&gt;
  
    &lt;security&gt;
      &lt;all-permissions/&gt;
    &lt;/security&gt;
  
    &lt;resources&gt;
      &lt;j2se version="1.5+"/&gt;
      &lt;jar eager="true" href="http://localhost:007/dist/a.jar" main="true"/&gt;
    &lt;/resources&gt;
  
    &lt;application-desc main-class="main.main"&gt;
    &lt;/application-desc&gt;
  
  &lt;/jnlp&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/skb5F.png" alt="enter image description here"></p>
  
  <p><strong>Follow up:</strong></p>
  
  <p>1) Download JAR Maker (works in Linux, Windows)</p>
  
  <p><img src="https://i.stack.imgur.com/s5YUe.png" alt="enter image description here"></p>
  
  <ul>
  <li>Sing <strong>all</strong> third party jars</li>
  <li><p>your deploy jars</p></li>
  <li><p>Output directory: /var/tmp/project/dist</p></li>
  <li><p>go to JAR Signer tab</p>
  
  <ul>
  <li>input jar file: a.jar
  
  <ul>
  <li>jarsigner location: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/jarsigner</li>
  <li>keystore file </li>
  <li>if no key was created > click generate keystore
                        - keytool location: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/keytool
                        - output keystore file: /var/tmp/keystore
                        - keystore alias: rememberthisname
                        - public key: 123456
                        - private key: 123456
                        - validity days: 0 means 6 month
                        - keystore identities
                          - valid info...
                        - press generate keystore 
                          - it will create /var/tmp/keystore and java.key.public and java.key</li>
  </ul></li>
  <li><p>keystore authentication</p>
  
  <ul>
  <li>keystore alias: rememberthisname</li>
  <li>public key: 123456 </li>
  <li>private key: 123456 </li>
  </ul></li>
  <li><p>click sign JAR! > will tell if failed or success</p></li>
  </ul></li>
  </ul>
  
  <p>Repeat this process for all other JAR files to sign!! </p>
  
  <p>2) Deploy to the landing space</p>
  
  <p>3) Make sure you have all  your third party is referenced</p>
  
  <p>Before:</p>
  
  <pre><code>  &lt;resources&gt;
      &lt;j2se version="1.5+"/&gt;
      &lt;jar eager="true" href="http://localhost:007/dist/a.jar" main="true"/&gt;
    &lt;/resources&gt;
  </code></pre>
  
  <p>After:</p>
  
  <pre><code>  &lt;resources&gt;
      &lt;j2se version="1.5+"/&gt;
      &lt;jar eager="true" href="a.jar" main="true"/&gt;
      &lt;jar eager="true" href="lib/b.jar" main="flas"/&gt;
      &lt;jar eager="true" href="lib/c.jar" main="flas"/&gt;
      &lt;jar eager="true" href="lib/d.jar" main="flas"/&gt;
      &lt;jar eager="true" href="lib/e.jar" main="flas"/&gt;
      &lt;jar eager="true" href="lib/f.jar" main="flas"/&gt;
      &lt;jar eager="true" href="lib/g.jar" main="flas"/&gt;
      &lt;jar eager="true" href="lib/h.jar" main="flas"/&gt;
      &lt;jar eager="true" href="lib/i.jar" main="flas"/&gt;
    &lt;/resources&gt;
  </code></pre>