title: .jar does not run and cannot find external jar
body: <p>My jar will not run after I compiled it. I use this ant build script</p>
  
  <pre><code>&lt;project name="HelloWorld" basedir="." default="jar"&gt;
  
  &lt;property name="src.dir"     value="src"/&gt;
  
  &lt;property name="build.dir"   value="build"/&gt;
  &lt;property name="classes.dir" value="${build.dir}/classes"/&gt;
  &lt;property name="jar.dir"     value="${build.dir}/jar"/&gt;
  &lt;property name="libsSrc" value="libs"/&gt;
  
  &lt;property name="main-class"  value="nat.ise.ApplicationStarter"/&gt;
  
  &lt;path id="classpath"&gt;
      &lt;fileset dir="${libsSrc}" includes="*.jar"/&gt;
  &lt;/path&gt;
  
  &lt;pathconvert property="mf.classpath" pathsep=" "&gt;
      &lt;path refid="classpath"/&gt;
      &lt;mapper&gt;
          &lt;chainedmapper&gt;
              &lt;flattenmapper/&gt;
              &lt;globmapper from="*.jar" to="lib/*.jar"/&gt;
          &lt;/chainedmapper&gt;
      &lt;/mapper&gt;
  &lt;/pathconvert&gt;
  
  &lt;target name="clean"&gt;
      &lt;delete dir="${build.dir}"/&gt;
  &lt;/target&gt;
  
  &lt;target name="compile"&gt;
      &lt;mkdir dir="${classes.dir}"/&gt;
      &lt;javac srcdir="."  classpathref="classpath"  destdir="${classes.dir}"/&gt;
  &lt;/target&gt;
  
  &lt;target name="jar" depends="compile"&gt;
      &lt;mkdir dir="${jar.dir}"/&gt;
      &lt;jar destfile="${jar.dir}/${ant.project.name}.jar"&gt;
          &lt;zipgroupfileset dir="${libsSrc}" includes="*.jar"/&gt;
          &lt;fileset dir="${classes.dir}" includes="**/*.class"/&gt;
          &lt;manifest&gt;
              &lt;attribute name="Main-Class" value="${main-class}"/&gt;
              &lt;attribute name="Class-Path" value="${mf.classpath}"/&gt;
          &lt;/manifest&gt;
      &lt;/jar&gt;
  &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>The manifest is correct and I am managing to get some of the libraries included but when running from the cmd prompt i get the error</p>
  
  <pre><code>java.io.FileNotFoundException
  </code></pre>
  
  <p>The file it is referring to a JOGL library gluegen-rt-natives-windowsamd64.jar</p>
  
  <p>Initially I was running the project from eclipse using the 32bit libraries, I have now included the 64bit libraries in the folder libs but it is still telling me that it cannot find them.</p>
  
  <p>In fact I now can see, when I open the jar, two copies of all the .dll files (I can only assume that this is one from the 32bit and one from the 64bit versions of JOGL)</p>
  
  <p>Is there not a way to make the program run using just the 32bit libraries? I want to reduce the ammount of distributions I have to make.</p>