title: glfwInit() is throwing an IllegalStateException error on initialization
body: <p>I am trying to set up GLFW, but so far, I am getting stuck on the very first step, which is calling <code>glfwInit()</code>. My code is below:</p>
  <pre class="lang-java prettyprint-override"><code>import static org.lwjgl.glfw.GLFW.*;
  
  public class Main {
      public static void main(String[] args)
      {
          if(!glfwInit())
          {
              throw new IllegalStateException(&quot;Failed to initialize GLFW&quot;);
          }
      }
  }
  </code></pre>
  <p>I am getting this error: <code>Exception in thread &quot;main&quot; java.lang.ExceptionInInitializerError at org.lwjgl.glfw.GLFW.glfwInit(GLFW.java:1046) at Main.main(Main.java:6) Caused by: java.lang.IllegalStateException: GLFW may only be used on the main thread and that thread must be the first thread in the process. Please run the JVM with -XstartOnFirstThread. This check may be disabled with Configuration.GLFW_CHECK_THREAD0. at org.lwjgl.glfw.EventLoop.&lt;clinit&gt;(EventLoop.java:30)</code>.</p>
  <p>For reference, I am on a Mac, and am using eclipse, and have every single LWJGL jar file included in the project classpath.</p>
  <p>Will running JVM with <code>-XstartOnFirstThread</code> like the warning says fix the issue? And if so, how do I do it?</p>