I'm developing a fairly complex Java
application mixing Swing
and SWT
. Whenever I start the application, this is the console output (and the app doesn't show up):
2012-12-19 12:45:45.359 java[3442:f07] [Java CocoaComponent compatibility mode]: Enabled
2012-12-19 12:45:45.360 java[3442:f07] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
I've followed many guides and tutorials setting:
System.setProperty("com.apple.awt.CocoaComponent.CompatibilityMode", "false");
-XstartOnSecondThread
--launcher-on-secondThread
Now I really don't have any clue. The only way to make my app working on Mac OSX
is to export the Eclipse project to a JAR executable
. Well, this is annoying. Can someone explain to me how to set those properties above? Are there any magic trick?
EDIT: I'm using:
OSX Mountain Lion 10.8.2 ,
Java 1.6u37 64bit,
SWT 4.2 cocoa x64,
Windows XP ,
Java 1.6u37 32bit,
SWT 4.2 32bit
-vmargs
, setting this ineclipse.ini
should have no effect. I would think you would simply want-vmargs -Dcom.apple.awt.CocoaComponent.CompatibilityMode=false -XstartOnFirstThread
. You should not need--launcher.secondThread
as that only affects the Swing launcher. To my knowledge, there is no such thing as-XstartOnSecondThread
. – Seventieth