tags:

views:

63

answers:

1

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  A: 

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.

Scott K.