SWT and Webstart on Mac

◇◆丶佛笑我妖孽 提交于 2019-12-11 13:43:32

问题


I'm trying to develop a UI using SWT and Java Webstart. As a starting point I've created a 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?


回答1:


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.



来源:https://stackoverflow.com/questions/1608534/swt-and-webstart-on-mac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!