Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AWT Toolkit, SWT/Eclipse and Leopard (Mac OS 10.5)



Hi,

I have updated from Mac OS X 10.4.10 to 10.5 and this broke my Eclipse Plugin. It is the old SWT/AWT problem, but this time the plugin was already working with Tiger!

You can test it since my plugin is available from the following update site:
http://www.informatik.fernuni-hagen.de/import/pi3/personen/pilgrim/gef3d/update/

It's a LWJGL plugin (LWJGL is an OpenGL wrapper for Java). Details on the plugin can be found  at
http://lwjgl.org/forum/index.php/topic,2379.15.html

Brief description: Simply download the plugin via Eclipse update mechanism using the update site above. Only the main LWJGL stuff is required. After installing the plugin, you will find a new view "Window/Show View/Other/LWJGL Test View". That's it. This view was (and should still work) working with Mac OS X 10.4 but doesn't with Mac OS X 10.5.

I know there's that old SWT-AWT-bridge problem within Eclipse and OS X since Cocoa and Carbon applications cannot be mixed. So AWT will not work within SWT/Eclipse. That's ok, because LWJGL doesn't really use AWT, only the AWT toolkit is loaded on startup, i.e.

Toolkit.getDefaultToolkit()

is called. This method worked fine with Tiger and it still does if the plugin is activated within a second Eclipse instance, e.g. by starting a runtime instance in run or debug mode from within Eclipse. When Eclipse (and the plugin) is started from the Finder, the following message occurs:

Unhandled event loop exception
Can't start the AWT because Java was started on the first thread.  Make sure StartOnFirstThread is not specified in your application's Info.plist or on the command line

But (again): The very same plugin worked with Tiger and still does under certain circumstances with Leopard. So it is clearly the latest Java version shipped with Leopard (1.5.0_13) which causes the problem. I explicitly choose LWJGL since this library was working with Eclipse and Mac OS X!

Is there a known workaround, VM property, or something else?

Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.