-XstartOnFirstThread VM Argument是什么意思? [英] What does the -XstartOnFirstThread VM Argument do / mean?

查看:224
本文介绍了-XstartOnFirstThread VM Argument是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到VM参数 -XstartOnFirstThread 的文档。似乎我在Mac上通过LWJGL运行JOGL是必要的。这是什么意思?似乎某些进程需要线程0.这是正确的吗?

I can't find documentation for the VM argument -XstartOnFirstThread. Seems necessary for me to run JOGL through LWJGL on my Mac. What does it mean? It seems to be that some process wants thread 0. Is this correct?

请注意:我有一个 run()我主班的方法。它似乎没有覆盖任何东西,我没有实现runnable。

Please note: I have a run() method in my main class. It doesn't seem to be overriding anything and I'm not implementing runnable.

我在这里运行的示例源代码: http://www.lwjgl.org/guide

Example source code I'm running here: http://www.lwjgl.org/guide

推荐答案

从Java 1.7.0_u4开始,此选项记录在 java -help 中:参见发行说明

As of Java 1.7.0_u4, this option is documented in java -help: see the release notes.

该选项使JVM使用线程0启动应用程序。显然,这对于让Mac OSX正确运行SWT和GWT应用程序是必要的。根据 Eclipse SWT常见问题解答,AWT和Swing应用程序使用一些未记录的魔法来执行此操作。

The option causes the JVM to use thread 0 to start the application. Apparently this is necessary to get Mac OSX to run SWT and GWT apps properly. According to the Eclipse SWT FAQ, AWT and Swing apps use some undocumented magic to do this.

这篇关于-XstartOnFirstThread VM Argument是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆