java - LWJGL wglGetCurrentContext exception -
i starting learn lwjgl, i'm having problem it. error line glcontext.createfromcurrent();
, can't figure out how fix it. first step using lwjgl wrote own code creating display, error popped up. later copied demonstration code lwjgl web page, have same error. , full error is:
hello lwjgl 3.0.0a! exception in thread "main" java.lang.unsatisfiedlinkerror: org.lwjgl.opengl.wgl.wglgetcurrentcontext()j @ org.lwjgl.opengl.wgl.wglgetcurrentcontext(native method) @ org.lwjgl.opengl.glcontextwindows.createfromcurrent(glcontextwindows.java:59) @ org.lwjgl.opengl.glcontext.createfromcurrent(glcontext.java:36) @ main.loop(main.java:97) @ main.run(main.java:26) @ main.main(main.java:117)
as left out interesting half of exception message guess didn't set path lwjgl right:
system.setproperty("org.lwjgl.librarypath", new file("pathtonatives").getabsolutepath());
for further reference see here
Comments
Post a Comment