Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] Simple SWT App launched with OSGi Launcher hangs on Mac OS X

I have a very simple SWT sample bundle (attached).  It has both a main and a bundle activator so it can be run stand-alone or under Equinox. 

I am trying to run on an Intel MacBook 10.4.10 with Eclipse 3.3 GA version

It runs fine stand-alone, it runs fine if I invoke java 
java -Declipse.ignoreApp=true -Dosgi.noShutdown=true -XstartOnFirstThread -jar plugins/org.eclipse.osgi_3.3.0.v20070530.jar -console

If I run it just about every other way I can think of, I get the spinning beachball and the Icon in the Dock shows "Application Not Responding"
I tried running:
1. as a Open Run Dialog...->OSGi Framework with 
Program arguments: -os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -console
VM arguments: -Declipse.ignoreApp=true -Dosgi.noShutdown=true -XstartOnFirstThread
2. from the command line 
java -Declipse.ignoreApp=true -Dosgi.noShutdown=true -XstartOnFirstThread -jar plugins/org.eclipse.osgi_3.3.0.v20070530.jar -console
config.ini:
osgi.bundles=org.eclipse.swt.carbon.macosx_3.3.0.v3346.jar,org.eclipse.swt_3.3.0.v3346g.jar@start,org.eclipse.swt.sample_1.0.0.jar@start
3.  with the Eclipse.app
config.ini:
osgi.bundles=org.eclipse.swt.carbon.macosx_3.3.0.v3346.jar,org.eclipse.swt_3.3.0.v3346g.jar@start,org.eclipse.swt.sample_1.0.0.jar@start
eclipse.ini:
-noExit
-console
15001
-vmargs
-Declipse.ignoreApp=true
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts

Am I missing a command line option to make this work?  Or is there something special I need to do in the SWT code to make this work?

I also tried the RCP example that is packaged with Eclipse to see if all SWT applications have this problem but that ran just fine, and the UI did not hang.  

I checked bugzilla and found launcher bugs dealing with swing, swt, launcher interactions but none with just the launcher and SWT.

Attached is com.eclipse.swt.sample.src.zip which contains the project com.eclipse.swt.sample and the binary bundle com.eclipse.swt.sample_1.0.0.jar

Attachment: org.eclipse.swt.sample.src.zip
Description: Zip archive


Thanks,
Patrick



Back to the top