title: Java Web Start NumberFormatException while running Jar application
body: <p>While trying to run Jar application using JWS (JNLP) launch. It has been giving me this error. Can't even find where is the mistake. Any directions would help.</p>
  
  <p>If someone could tell me where is the potential location of this error, I could find post that code here.</p>
  
  <pre><code>java.lang.NumberFormatException: For input string: "\Tools_Dev\TestApp\dist"
      at java.lang.NumberFormatException.forInputString(Unknown Source)
      at java.lang.Integer.parseInt(Unknown Source)
      at java.lang.Integer.parseInt(Unknown Source)
      at com.sun.deploy.security.DeployManifestChecker.verifyCodebaseEx(Unknown Source)
      at com.sun.deploy.security.DeployManifestChecker.verifyCodebase(Unknown Source)
      at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
      at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
      at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source)
      at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
      at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
      at com.sun.javaws.Launcher.prepareResources(Unknown Source)
      at com.sun.javaws.Launcher.prepareAllResources(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><strong>Note:</strong> I have the latest Java 8 installed and working on Netbeans.
  The jar file works well if called manually, java -jar testTool.jar</p>
  
  <p><strong>Update:</strong></p>
  
  <p><strong>JNLP File Content:</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;jnlp codebase="file:/C:/Tools_Dev/TestApp/dist/" href="launch.jnlp" spec="1.0+"&gt;
      &lt;information&gt;
          &lt;title&gt;Java Tool Update Test&lt;/title&gt;
          &lt;vendor&gt;Local&lt;/vendor&gt;
          &lt;description&gt;Test Tool&lt;/description&gt;
          &lt;offline-allowed/&gt;
      &lt;/information&gt;
      &lt;security&gt;
          &lt;all-permissions/&gt;
      &lt;/security&gt;
      &lt;update check="background"/&gt;
      &lt;resources&gt;
          &lt;j2se version="1.7+"/&gt;
          &lt;jar href="Java-Tool-Update-Test.jar" main="true"/&gt;
          &lt;jar href="lib/sqlite-jdbc-3.7.15-M1.jar"/&gt;
          &lt;jar href="lib/poi-3.10-FINAL-20140208.jar"/&gt;
          &lt;jar href="lib/poi-ooxml-3.10-FINAL-20140208.jar"/&gt;
          &lt;jar href="lib/poi-ooxml-schemas-3.10-FINAL-20140208.jar"/&gt;
          &lt;jar href="lib/dom4j-1.6.1.jar"/&gt;
          &lt;jar href="lib/xmlbeans-2.3.0.jar"/&gt;
          &lt;jar href="lib/jaxen-1.1.6.jar"/&gt;
      &lt;/resources&gt;
      &lt;application-desc main-class="Tool.Test.Main"&gt;
      &lt;/application-desc&gt;
  &lt;/jnlp&gt;
  </code></pre>
  
  <p><strong>Errors prompted in JaNeLa tool excluding warnings and optimizations:</strong></p>
  
  <pre><code>JaNeLA Report - version 11.05.17
  cvc-complex-type.2.4.a: Invalid content was found starting with element 'security'. One of '{resources, application-desc, applet-desc, component-desc, installer-desc}' is expected.
  cvc-complex-type.2.4.a: Invalid content was found starting with element 'security'. One of '{resources, application-desc, applet-desc, component-desc, installer-desc}' is expected.
  Lazy downloads might not work as expected for lib/sqlite-jdbc-3.7.15-M1.jar unless the download 'part' is specified. 
  Lazy downloads might not work as expected for lib/poi-3.10-FINAL-20140208.jar unless the download 'part' is specified. 
  Lazy downloads might not work as expected for lib/poi-ooxml-3.10-FINAL-20140208.jar unless the download 'part' is specified. 
  Lazy downloads might not work as expected for lib/poi-ooxml-schemas-3.10-FINAL-20140208.jar unless the download 'part' is specified. 
  Lazy downloads might not work as expected for lib/dom4j-1.6.1.jar unless the download 'part' is specified. 
  Lazy downloads might not work as expected for lib/xmlbeans-2.3.0.jar unless the download 'part' is specified. 
  Lazy downloads might not work as expected for lib/jaxen-1.1.6.jar unless the download 'part' is specified. 
  </code></pre>