- does the demo program on
http://www.lwjgl.org/guide work?
- what is the message of the IllegalStateException? Is it possibly: "
There is no OpenGL context current in the current thread." ?
- are you using multiple threads?
- are you on OS X? In which case you should use the JVM argument "-XstartOnFirstThread".
About the OpenGL context needing to be current:
OpenGL requires a context to be "
current" in the thread that calls GL functions. Being current means that OpenGL knows which context the GL function applies to and on which window the result will be rendered to.
You therefore need to make sure that, before calling any GL functions, you have called
GLFW.glfwMakeContextCurrent(window) with the GLFW window as argument AND that you notified LWJGL about the current context once via
GLContext.createFromCurrent().