Please login or register.

Login with username, password and session length

Author Topic: Bypass -XStartOnFirstThread?  (Read 21 times)


  • Newbie
  • *
  • Offline Offline
  • Posts: 21
Bypass -XStartOnFirstThread?
« on: Today at 00:43:19 »

Was wondering if there was any way to bypass -XStartOnFirstThread. It's terribly inconvenient to have to specify this to run lwjgl applications on OSX.

I totally get that when you release a finished product, you can simply create a "application" under OSX, and specify your JVM arguments there, but when developing it's quite annoying.


  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 871
Re: Bypass -XStartOnFirstThread?
« Reply #1 on: Today at 10:56:18 »

If you are using an IDE, then you can specify default VM arguments. In Eclipse you can do that on a per-JDK basis so that every run configuration you create that uses this JDK will have automatically the VM arguments appended to every run. In IntelliJ IDEA you can do the same on a per-runtype basis. See:
- For Eclipse: http://stackoverflow.com/questions/10639322/how-can-i-specify-the-default-jvm-arguments-for-programs-i-run-from-eclipse#answer-11300970 (the answer from Alice Young, not the one below that)
- For IntelliJ IDEA: https://www.jetbrains.com/help/idea/2017.1/changing-run-debug-configuration-defaults.html