LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: Vashatako on March 03, 2015, 23:37:00

Title: [CLOSED] LWJGL 3 on Mac OS X
Post by: Vashatako on March 03, 2015, 23:37:00
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!
Title: Re: [BUG] LWJGL 3 on Mac OS X
Post by: Vashatako on March 07, 2015, 19:46:20
Also, this is using version 3.0.0a with Eclipse. Thanks!
Title: Re: [BUG] LWJGL 3 on Mac OS X
Post by: Kai on March 07, 2015, 19:59:28
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.
Title: Re: [BUG] LWJGL 3 on Mac OS X
Post by: Vashatako on March 07, 2015, 21:58:15
Thank you, that fixed it. Do you happen to know why LWJGL 3.0.0a no longer has the "disruptor.jar" file?
Title: Re: [BUG] LWJGL 3 on Mac OS X
Post by: Kai on March 08, 2015, 15:28:05
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)
Title: Re: [BUG] LWJGL 3 on Mac OS X
Post by: Vashatako on March 08, 2015, 15:34:30
Thank you for the clarification.