title: Cannot start Java Web Start JNLP based application (single signed JAR)
body: <p>I am using <a href="https://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/jnlp.html" rel="nofollow noreferrer">JNLP (Java Network Launch Protocol)</a> for the first time, and cannot find a way to discover the source of a problem.</p>
  
  <p>My application is <a href="https://en.wikipedia.org/wiki/Swing_(Java)" rel="nofollow noreferrer">SWING</a> based, and runs correctly as a stand alone <a href="https://docs.oracle.com/javase/tutorial/deployment/jar/basicsindex.html" rel="nofollow noreferrer">JAR - Java Archive</a> file.
  However, in my deployment stage, I am having an unknown issue, where the application launches at <a href="http://docs.oracle.com/javafx/2/deployment/deploy_user_experience.htm#BABFIECI" rel="nofollow noreferrer">the first Phase</a>, but does not operate.</p>
  
  <p>My internal application Logger tool demonstrates that the Application does not reach the first line in my Java Main method.</p>
  
  <p>My computer Log and Trace yield the same error below, however most issues I could find are related to encode and language in the keytool/jarsigner stage.</p>
  
  <p>I have tried several alternative languages, rebooted the computer with a different location, and even tried to generate the keystore in a different machine, always yielding the same error:</p>
  
  <h3>javaws.trace</h3>
  
  <pre><code>Log started: Fri, 11 Aug 2017 12:03:49 -0300
  Java Web Start 11.141.2.15
  Usando a versão do JRE
   1.8.0_141-b15 Java HotSpot(TM) 64-Bit Server VM
  #### Java Web Start Error:
  java.lang.IllegalArgumentException: unknown format type: número
      at java.text.MessageFormat.makeFormat(Unknown Source)
      at java.text.MessageFormat.applyPattern(Unknown Source)
      at java.text.MessageFormat.&lt;init&gt;(Unknown Source)
      at java.text.MessageFormat.format(Unknown Source)
      at com.sun.deploy.resources.ResourceManager.applyPattern(Unknown Source)
      at com.sun.deploy.resources.ResourceManager.getString(Unknown Source)
      at com.sun.javaws.exceptions.JNLParseException.getRealMessage(Unknown Source)
      at com.sun.javaws.exceptions.JNLPException.getMessage(Unknown Source)
      at com.sun.javaws.ui.LaunchErrorDialog.getMessage(Unknown Source)
      at com.sun.javaws.ui.LaunchErrorDialog.show(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 JNLP file:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jnlp spec="1.0+" codebase="http://www.myFakeSite.com/" href="myJNLP.jnlp"&gt;
      &lt;information&gt;
          &lt;title&gt;TITLE&lt;/title&gt;
          &lt;vendor&gt;VENDOR&lt;/vendor&gt;
          &lt;homepage href ="http://www.myFakeSite.com"/&gt;
          &lt;description&gt;MY APPLICATION&lt;/description&gt;
          &lt;description kind="short"&gt;My Application Description&lt;/description&gt;
          &lt;icon href="./imgs/splash.png"/&gt;
          &lt;icon kind="splash" href="./imgs/splash.png"/&gt;
          &lt;icon kind="shortcut" href="./imgs/icons.ico"/&gt;
          &lt;offline-allowed/&gt;
          &lt;shortcut online="false" install="true"&gt;
              &lt;desktop/&gt;
              &lt;menu submenu="MENU"&gt;
                  &lt;menu submenu="SUB_MENU"/&gt;
              &lt;/menu&gt;
          &lt;/menu&gt;
      &lt;/shortcut&gt;
      &lt;/information&gt;
      &lt;update check="background" policy="prompt-update"/&gt;
      &lt;security&gt;
          &lt;all-permissions/&gt;
      &lt;/security&gt;
      &lt;resources&gt;
          &lt;j2se version="1.8+" href="http://java.sun.com/products/autodl/j2se"/&gt;
          &lt;jar href="MYJAR.jar" main="true"/&gt;
      &lt;/resources&gt;
      &lt;application-desc
          main-class="Main"&gt;
  &lt;/jnlp&gt;
  </code></pre>
  
  <p>Running on WAMP server, the MIME is working as expected, and the <a href="https://www.mozilla.org/en-US/firefox/" rel="nofollow noreferrer">Mozzila Firefox</a> prompts the user to start the Java Web Start (javaws)</p>
  
  <h2>Edit: 17/08/2017</h2>
  
  <p>I have performed several changes, and was able to make it work, however, I still desire to understand the source of the issue, so I wont close/delete this question.</p>
  
  <p>As far as I can tell, the solution was creating a simplified JNLP file, with just the basics, and creating a new KeyStore, using only ANSI characters in it entirely (such as Name Organization, and even the Alias/Password)</p>