I have a Java Application that uses the Eclipse SWT framework. I created a Mac Application Bundle. When I ran it I got the error below:
9/11/13 11:40:43.483 PM [0x0-0x25025].com.Snap Legal Software LLC.SplitsEase Mac Edition.SplitsEase: ***WARNING: Display must be created on main thread due to Cocoa restrictions.
On the Eclipse SWT site I found that the -XstartOnFirstThread JVM parameter was required to allow SWT programs to run on OSX.
I added this parameter to the JVM Parameters on the Java Virtual Machine tab in AI. Now I get this error when I install and run the application:
9/11/13 11:40:43.233 PM JavaApplicationStub: Unrecognized Java VM option ignored: -XstartOnFirstThread
When I run the application directly from a command line the app launches correctly:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -XstartOnFirstThread -jar SplitsEase.jar
Any thoughts on what is wrong?
Will Binns
FOLLOW US
Get the latest news in Application Packaging