开发者

SWT and Webstart on Mac

I'm trying to develop a UI using SWT and Java Webstart. As a starting point I've created a开发者_StackOverflow simple app that works fine with Windows and Linux, but fails to work on Mac. My test app is available here. There are also links to the jar files and class code.

Can anyone explain how to make this work on Mac?


See this Eclipse bug. Your JNLP file is incorrect. Remove the line

<j2se version="1.5+"/>

from the first <resources> tag.

Specifying <j2se version="1.5+"/> in the <resources> tag without any other attributes is throwing off the JNLP parser and causing the later line <j2se version="1.5*" java-vm-args="-XstartOnFirstThread -d32"/> to be ignored. The two lines end up referring to two separate JVMs, and the first specification is 'winning'. That spec has no VM arguments on it, so the JVM starts normally, and the SWT is loaded on the wrong thread.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜