Please login or register.

Login with username, password and session length

Author Topic: [FIXED][glfw] Bug on loading glfw dll  (Read 1439 times)


  • Newbie
  • *
  • Offline Offline
  • Posts: 5
[FIXED][glfw] Bug on loading glfw dll
« on: September 23, 2015, 08:35:09 »

Hello everyone,
I'm new here so if I miss something before posting tell me/ban me/do whatever you want ;)
I've downloaded for the first time the lwjgl and try some basic test.
Here the error I've got :

Hello LWJGL 3.0.0b build 34!
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.lwjgl.glfw.LibGLFW
   at org.lwjgl.glfw.GLFW.getInstance(GLFW.java:566)
   at org.lwjgl.glfw.GLFW.glfwTerminate(GLFW.java:616)
   at HelloWorld.run(HelloWorld.java:33)
   at HelloWorld.main(HelloWorld.java:113)

I'm using a windows 32-bits system and the problem is that the LibGLFW class try to load the 64-bits dll glfw

I've change the source code of org.lwjgl.glfw.LibGLFW line 32 with this :

Code: [Select]
FunctionProvider functionProvider = LWJGLUtil.loadLibraryNative(System.getProperty("org.lwjgl.glfw.libname", Pointer.BITS64 ? "glfw" : "glfw32"));

And now it works fine.



  • Administrator
  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 1908
Re: [glfw] Bug on loading glfw dll
« Reply #1 on: September 23, 2015, 09:51:43 »

Fixed in build 35. Thanks! :)