title: How to supply a class-path to an external JAR through Java Web Start
body: <p>I'm making a small interface for a console app, and as such I'm executing the console app and then running commands through the command line.</p>
  
  <p>My issue is that the JAR that I'm executing needs to be supplied a path to a JAR library. However I have no idea how to correctly pass this information. According to the information I found in <a href="http://download.oracle.com/javase/1.5.0/docs/guide/javaws/developersguide/syntax.html" rel="nofollow"><em>JNLP File Syntax</em></a>, I should add all external JARs to the JAR path in my JNLP file.</p>
  
  <p>This file looks like this:</p>
  
  <pre><code>&lt;resources&gt;
      &lt;j2se version="1.5+"/&gt;
      &lt;jar href="uToolGUI.jar" main="true"/&gt;
      &lt;jar href="uTool.jar"/&gt;
      &lt;jar href="jpcap.jar"/&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>The line I'm currently executing is this:</p>
  
  <pre><code>java.exe -cp lib\jpcap.jar;. -jar D:\jarCreateLib\uTool.jar gen
  </code></pre>
  
  <p>So I guess the question boils down to - how do I refer to my wanted library in a way such that Web Start will allow me to do so.</p>
  
  <p>This works like a charm when executed through Eclipse. If I have to run it through <code>java -jar...</code>, I have to add in <code>-Djnlp.java.library.path=lib</code> however this makes no difference whenever I try to execute it thorugh Java Web Start. </p>
  
  <p>Thanks in advance for any and all replies and answers.</p>