Hello Guest

[SOLVED] Problem with GLFW.glfwInit - SetWindowIcon - LWJGL 3 nightly

  • 2 Replies
  • 3216 Views
*

Offline NkD

  • *
  • 2
Exists some workaround if I get this error on GLFW.glfwInit ?

Exception in thread "main" java.lang.ExceptionInInitializerError
   at org.lwjgl.glfw.GLFW.glfwInit(GLFW.java:692)
   at cz.nkd.skeleton.platform.ui.window.WindowsRegistry.init(WindowsRegistry.java:39)
   at cz.nkd.skeleton.platform.ui.window.Window.<clinit>(Window.java:48)
   at cz.nkd.skeleton.platform.ui.window.WindowBuilder.build(WindowBuilder.java:79)
   at cz.nkd.skeleton.platform.ui.workbench.Workbench.start(Workbench.java:132)
   at cz.nkd.skeleton.Launcher.main(Launcher.java:12)
Caused by: java.lang.IllegalStateException: This function is not available.
   at org.lwjgl.system.Checks.checkFunctionAddress(Checks.java:89)
   at org.lwjgl.system.APIUtil.apiGetFunctionAddress(APIUtil.java:121)
   at org.lwjgl.glfw.GLFW$Functions.<clinit>(GLFW.java:594)
   ... 6 more

row org.lwjgl.glfw.GLFW$Functions.<clinit>(GLFW.java:594) is:
long SetWindowIcon = apiGetFunctionAddress(GLFW, "glfwSetWindowIcon"),

LWJGL 3.0.0-SNAPSHOT - (latest nightly, but problem appears about 3 weeks ago)

« Last Edit: May 06, 2016, 22:14:01 by NkD »

*

Offline spasi

  • *****
  • 2156
    • WebHotelier
Re: Problem with GLFW.glfwInit - SetWindowIcon - LWJGL 3 nightly
« Reply #1 on: May 05, 2016, 09:57:17 »
Sounds like an old GLFW shared library is being loaded somehow. Try running with -Dorg.lwjgl.util.Debug=true and inspect the output. It will print the exact paths where shared libraries are loaded from.

*

Offline NkD

  • *
  • 2
You are right. It was a problem. thx