title: Jnlp Could not parse launch file. Error at line 0
body: <p>I have searched the web and have found no definitive solution, so here goes:</p>
  
  <p>I made a JNLP file to launch a JAR in the same folder, however it fails to launch and gives the error "Could not parse launch file. Error at line 0."</p>
  
  <p>Here's DevChat.jnlp:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; 
  &lt;!-- JNLP to Launch DevChat --&gt;
  &lt;jnlp 
      spec="1.0+"
      href="DevChat.jnlp"&gt;
  
      &lt;information&gt;
          &lt;title&gt;DevChat&lt;/title&gt;
          &lt;vendor&gt;Dev Team&lt;/vendor&gt;
      &lt;/information&gt;
  
      &lt;security&gt;
          &lt;all-permissions/&gt;
      &lt;/security&gt;
  
      &lt;resources&gt;
      &lt;j2se version="1.4.2"/&gt;
          &lt;jar href="DevSuite.jar" main="true" /&gt;
      &lt;jar href="commons-net-3.0.1.jar" /&gt;
      &lt;/resources&gt;
  
      &lt;application-desc 
      main-class="DevChat"
          name="DevChat"
       &lt;/application-desc&gt;
  
  &lt;/jnlp&gt;  
  </code></pre>
  
  <p>And the exception:</p>
  
  <pre><code>JNLParseException[ Could not parse launch file. Error at line 0.]
  at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
  at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
  at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
  at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
  at com.sun.javaws.Main.launchApp(Unknown Source)
  at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
  at com.sun.javaws.Main$1.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>And the wrapped exception:</p>
  
  <pre><code>java.lang.NullPointerException
  at com.sun.deploy.xml.XMLParser.parseXMLAttribute(Unknown Source)
  at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
  at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
  at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
  at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
  at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
  at com.sun.deploy.xml.XMLParser.parse(Unknown Source)
  at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
  at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
  at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
  at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
  at com.sun.javaws.Main.launchApp(Unknown Source)
  at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
  at com.sun.javaws.Main$1.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>Running from console shows nothing at all. Any help would be appreciated!</p>