Mailing Lists: Apple Mailing Lists

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

Re: SWT Unsatisfied link error




On Jul 27, 2005, at 4:01 PM, Elliotte Harold wrote:
2005-07-27 18:56:29.016 java[1245] Apple AWT Java VM was loaded on first thread -- can't start AWT.
Exception in thread "main" java.lang.InternalError: 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


This mean anything to anybody? Google finds quite a few scattered hits on this, but none that clearly tell me how to solve the problem. Looking them over this appears like it might be a known Apple VM bug.


There is a well known issue with SWT and Swing. Basically, in order to integrate with the OS event loop properly in OS X, SWT must be started on the first thread in the application. I'm sure someone else can explain the lower level OS specifics better than I can. Apple has included a -XstartOnFirstThread VM option to enable SWT applications to run properly on OS X.

Swing on the other hand integrates with the OS event loop in an incompatible way. When you try to run both SWT and Swing components in the same application, their event loops deadlock, hanging the application.

For more information see, https://bugs.eclipse.org/bugs/show_bug.cgi? id=67384

Scroll down for the informative posts from Andre Weinand.

--
Peter Molettiere
Founder, Green Array


_______________________________________________ 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
References: 
 >SWT Unsatisfied link error (From: Elliotte Harold <email@hidden>)
 >Re: SWT Unsatisfied link error (From: Elliotte Harold <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.