Hi, I am trying to use LWJGL 3 on Mac OS X Yosemite. When version 3 just came out I installed the library and it ran fine, but now when I updated to the latest version I have encountered issues.
The download does not include "disruptor.jar" in the lwjgl/jar folder, as it had previously. Also, when I run the Hello World code on the LWJGL website I come up with this error:
Quote
Exception in thread "main" java.lang.IllegalStateException: Please run the JVM with -XstartOnFirstThread.
at org.lwjgl.system.macosx.EventLoop.checkFirstThread(EventLoop.java:20)
at org.lwjgl.glfw.GLFW.glfwInit(GLFW.java:426)
at HelloWorld.init(HelloWorld.java:44)
at HelloWorld.run(HelloWorld.java:25)
at HelloWorld.main(HelloWorld.java:112)
Any help given is much appreciated; I am new to LWJGL and just wanted to use the latest version. Thanks!
Also, this is using version 3.0.0a with Eclipse. Thanks!
Like the error message tells, you have to start the JVM with the said parameter.
If you are using Eclipse, you go to your "Run Configuration" under the Tab "Arguments" and add to the "VM arguments" the said string from the error message.
Thank you, that fixed it. Do you happen to know why LWJGL 3.0.0a no longer has the "disruptor.jar" file?
The disruptor.jar was a way to handle inter-thread communication in previous builds of LWJGL 3, because of the way the JVM uses UI/window message threads on OS X.
Spasi fought for a while on this, I guess, and then resorted to just requiring to use that specific JVM parameter.
You can have a look at the LWJGL 3 thread for this: http://forum.lwjgl.org/index.php?topic=4800.msg29785#msg29785 (http://forum.lwjgl.org/index.php?topic=4800.msg29785#msg29785)
Thank you for the clarification.