title: Missing library on java.library.path trying to deploy executable JAR
body: <p>I'm attempting to execute an executable JAR I generated using Eclipse for a Slick2D game project I'm trying to deploy, and I keep getting an error saying:</p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: no lwjgl64 in java.library.path
  </code></pre>
  
  <p>I followed the Slick2D setup to the letter when setting up the project months ago. But up until now, I've always run through Eclipse, and have never attempted to run through a JAR.</p>
  
  <p>To generate the JAR, I chose Export -> Runnable JAR, and I chose to package the required libraries into the JAR. I then tried to execute the JAR from the command line as so:</p>
  
  <pre><code>java -jar JAR_NAME.jar
  </code></pre>
  
  <p>After receiving the above error, I tried many different methods of getting this so-called lwjgl64 library onto the java.library.path, but to no avail.</p>
  
  <p>So far I've tried:</p>
  
  <ol>
  <li>Changing the native library location of lwjgl.jar in my Slick2D user library to the folder containing the lwjgl-natives-*.jar files, but those only have the 32-bit definitions in them, and I figured it was looking for a DLL, so...</li>
  <li>I ran the following command instead:
  
  <blockquote>
    <p>java -jar JAR_NAME.jar -Djava.library.path="C:\slick2d"</p>
  </blockquote></li>
  </ol>
  
  <p>But this produced the same result, even though that directory contains lwjgl64.dll, among other files.</p>
  
  <ol start="3">
  <li>I tried copying all of the dll/so files from C:\slick2d into a folder called natives in a source folder in Eclipse and using the following code to set it as the java.library.path:</li>
  </ol>
  
  <blockquote>
    <p>System.setProperty("java.library.path", "libs");</p>
    
    <p>System.setProperty("org.lwjgl.librarypath", new File("libs/natives").getAbsolutePath());</p>
  </blockquote>
  
  <p>But this just resulted in yet another error:</p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\packetpirate\workspace\GZS Redux\target\libs\natives\lwjgl64.dll
  </code></pre>
  
  <p>Does anyone have any insight into this problem? I'm not great at building projects, especially in Eclipse, so I've always had trouble with linking dependencies. I've thought of converting my project to Maven, but I wouldn't know where to start and how to set it up.</p>
  
  <p><strong>EDIT:</strong> I realized that the libs/natives folder was not copied to the target folder when I generated my JAR, and after copying it over, I was able to run the JAR, but I still get similar errors related to jinput-dx8_64 and jinput-raw_64, which are also in the same folder. It doesn't seem to affect the game's behavior, though...</p>
  
  <p>Also, although I know this is a Slick2D specific thing... it seems to be loading my assets twice. The only way I can see this happening is if the Loading state is entered twice, which doesn't make sense.</p>