title: Java - Library path error
body: <p>I'm trying to start my java game but I have some troubles with the java command line:</p>
  
  <p>Here is what I type:</p>
  
  <p><code>C:\&gt;java -Djava.library.path=%cd%\lib -jar game.jar</code></p>
  
  <p>And here is what I got:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
      at com.game.Main.main(Main.java:7)
      Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 1 more
  </code></pre>
  
  <p>I can start my game with Eclipse (With Run as Java Application) but after the menu I got the following error:</p>
  
  <pre><code>Exception in thread "Thread-5" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
      at java.lang.ClassLoader.loadLibrary(Unknown Source)
      at java.lang.Runtime.loadLibrary0(Unknown Source)
      at java.lang.System.loadLibrary(Unknown Source)
      at org.lwjgl.Sys$1.run(Sys.java:72)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
      at org.lwjgl.Sys.loadLibrary(Sys.java:81)
      at org.lwjgl.Sys.&lt;clinit&gt;(Sys.java:98)
      at org.lwjgl.opengl.Display.&lt;clinit&gt;(Display.java:129)
      at com.game.displaygui.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p><code>lwjgl.jar</code> has been put into the folder <code>\lib</code>.</p>
  
  <p>Could you explain me with I got that?</p>
  
  <p>Thanks.</p>