libgdx/libgdx

Error with build desktop version

EvgeniiZaikin opened this issue · 1 comments

I dist dektop application. Get error with starting with java -jar...

Exception in thread "main" 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.

If you are running on mac you'll need to run java -XstartOnFirstThread -jar ...