On Linux, glfw is located under build/run-natives/linux/x64/org/lwjgl/glfw/libglfw.so. This is a problem because lwjgl expects it to be in the root directory of -Djava.library.path. I tested this by copying libglfw.so to the root directory and everything worked.