开发者

SWT and Webstart on Mac

开发者 https://www.devze.com 2022-12-09 08:45 出处:网络
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 ap

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

精彩评论

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

关注公众号