LWJGL
June 19, 2013, 15:51:05 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: [CLOSED] UnsatisfiedLinkError: org.lwjgl.opengl.GLContext.getFunctionAddress  (Read 1839 times)
adm_aj
Newbie
*
Posts: 2


« on: November 27, 2011, 19:22:51 »

Hi,
I have started using LWJGL and while running a test app in eclipse environment on Windows7, I am getting:

java.lang.UnsatisfiedLinkError: org.lwjgl.opengl.GLContext.getFunctionAddress(Ljava/lang/String;)J
   at org.lwjgl.opengl.GLContext.getFunctionAddress(Native Method)
   at org.lwjgl.opengl.ContextCapabilities.initAllStubs(ContextCapabilities.java:4678)
   at org.lwjgl.opengl.ContextCapabilities.<init>(ContextCapabilities.java:5014)
   at org.lwjgl.opengl.GLContext.useContext(GLContext.java:349)
   at org.lwjgl.opengl.Context.makeCurrent(Context.java:194)
   at org.lwjgl.opengl.AbstractDrawable.makeCurrent(AbstractDrawable.java:44)
   at org.lwjgl.opengl.Display.makeCurrent(Display.java:732)
   at org.lwjgl.opengl.Display.makeCurrentAndSetSwapInterval(Display.java:897)
   at org.lwjgl.opengl.Display.create(Display.java:861)
   at org.lwjgl.opengl.Display.create(Display.java:785)
   at test.SimpleTest.createDisplay(SimpleTest.java:138)
   at test.SimpleTest.run(SimpleTest.java:306)
   at test.SimpleTest.main(SimpleTest.java:86)

Earlier, I was getting lwjgl not found in library path but that was solved by specifying native library attribut for lwjgl.jar.

Logged
Matzon
Administrator
Demigod
*****
Posts: 2239



« Reply #1 on: November 28, 2011, 00:20:59 »

since this error would imply that lwjgl wouldn't work for anyone, I am leaning towards something specific to your environment.

Have you done the usual tests, like testing that you have up to date OpenGL drivers, LWJGL binaries and confirmed that the OpenGL tests supplied in org.lwjgl.test.* also fail? Does it work from command line
Logged

adm_aj
Newbie
*
Posts: 2


« Reply #2 on: November 28, 2011, 20:26:39 »

Thanks for the reply.
The problem was coming because TWL GUI Library was using an incorrect version of lwjgl.jar
But the problem was specifically coming in LWJGL, so I didn't initially think that as a possibility.
Replacing with latest version from LWJGL solved the problem.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!