title: How to resolve this JNI error when trying to run LWJGL "Hello World"?
body: <p>I'm trying to run the sample "Hello World" from the LWJGL website</p>
  
  <p>From this link: <a href="http://www.lwjgl.org/guide" rel="noreferrer">LWJGL "Getting Started"</a></p>
  
  <p>I'm trying to do this via the command line, just so I understand the "behind the scenes" a bit better.</p>
  
  <p>I've managed to compile without any errors, but when I try to run the program I'm getting this error:</p>
  
  <pre class="lang-none prettyprint-override"><code>C:\JavaProjects\LearningLWJGL&gt;java -classpath .;./lib/*.jar -Djava.library.path=C:\Windows\System32 HelloWorld
  Error: A JNI error has occurred, please check your installation and try again
  Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/glfw/GLFWKeyCallback
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
      at java.lang.Class.privateGetMethodRecursive(Unknown Source)
      at java.lang.Class.getMethod0(Unknown Source)
      at java.lang.Class.getMethod(Unknown Source)
      at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
      at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
  Caused by: java.lang.ClassNotFoundException: org.lwjgl.glfw.GLFWKeyCallback
      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)
      ... 7 more
  </code></pre>
  
  <p>Any ideas?</p>