It depends on what features/libraries/modules you want to use.
For likely the most common usecase of using GLFW + OpenGL + stb, your classpath needs to include:
- lwjgl/lwjgl.jar
- lwjgl/lwjgl-natives-<your-os>.jar
- lwjgl-glfw/lwjgl-glfw.jar
- lwjgl-glfw/lwjgl-glfw-natives-<your-os>.jar
- lwjgl-opengl/lwjgl-opengl.jar
- lwjgl-stb/lwjgl-stb.jar
- lwjgl-stb/lwjgl-stb-natives-<your-os>.jar
Hello Kai,
First of all thank you for replying to my question.

In Eclipse I added the libraries you told me to add. It fixed all the warnings in Eclipse about an non-existing import.
However when I actually run the "HelloWorld.java" class that is provided at the Get Started page, it throws the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.lwjgl.system.MemoryAccess
at org.lwjgl.system.Pointer.<clinit>(Pointer.java:22)
at org.lwjgl.system.Platform.mapLibraryNameBundled(Platform.java:76)
at org.lwjgl.glfw.GLFW.<clinit>(GLFW.java:562)
at Game.HelloWorld.run(HelloWorld.java:29)
at Game.HelloWorld.main(HelloWorld.java:105)
NOTE: "</clinit></clinit>" Is not actually part of the exception. It's some sort of a forum bug?
A quick google showed me that this problem is caused by incorrectly configured native libraries.
Since Eclipse asks for a folder instead of a .jar I tried to point to the library folder. I also tried to make seperate folders and put the correct native library for my OS in it. And last I've tried to point it to the .jar. None of them worked.

Kind Regards,
Max