After setting up a workspace in IDEA and adding the library, i copy-pasted the code from getting started (which already had an issue but that was easily fixable), but upon running the code I got this error:
Exception in thread "main" java.lang.NullPointerException
at org.lwjgl.system.Checks.checkPointer(Checks.java:79)
at org.lwjgl.glfw.GLFW.glfwGetVideoMode(GLFW.java:797)
at foxy.code.opengl.MainClass.init(MainClass.java:75)
at foxy.code.opengl.MainClass.run(MainClass.java:28)
at foxy.code.opengl.MainClass.main(MainClass.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
It appears that glfwGetPrimaryMonitor() is returning a NULL value, and nothing is being printed to the glfw error callback.
I am using:
- 3.0.0a build 59 (Release)
- Windows 10
- Intel HD Graphics 4000
Not sure what would be causing this. Perhaps i need an updated version for windows 10? That doesn't seem right though...
EDIT: I just tried the latest stable build (3.0.0b-b9) and the latest nightly build (3.0.0b-b15), and they both give me the same error.