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: OSXAdapter and SWT applications?



Yes, I've seen this too. It's when invoking the NSWorkspace.openURL or
openFile with a local file (not a website). I am doing this through a
URLClassLoader in a Swing app. I have found that setting the environment
variable fixes it, but I still haven't found a good way to set an
environment variable in a Java app. Have you?
Thanks, Erich
________________________________

I've working on a simple Java application that's using the SWT toolkit
instead of Swing. I'd like to use Apple's OSXAdapter so that my app can
handle the About, Quit, etc menu items correctly. Unfortunately, I'm
having some trouble doing this. I've written a simple SWT test app that
(AFAICT) is using the OSXAdapter code correctly, but when it's run I get
this error: 2003-12-30 16:30:23.159 java_swt[4175] Apple AWT: Running on
AppKit Thread when not expected. (src/macosx/native/apple/awt/awt.m -
JNI_OnLoad : 159)2003-12-30 16:30:23.161 java_swt[4175] Please file a bug
report at http://developer.apple.com/java/ with this message and a
reproducible test case.2003-12-30 16:30:23.170 java_swt[4175] Apple AWT:
Running on AppKit Thread when not expected.
(src/macosx/native/apple/awt/awt.m - +[AWTStarter start:] : 48)2003-12-30
16:30:23.171 java_swt[4175] Please file a bug report at
http://developer.apple.com/java/ with this message and a reproducible test
case.2003-12-30 16:30:23.172 java_swt[4175] Please run this java program
again with setenv APPLE_AWT_DISABLE_THREAD_ASSERTS to proceed with a
warning.src/macosx/ native/apple/awt/awt.m:48: failed assertion 'NO' Has
anyone else seen this? Even better, seen it and have a solution? :) Using
JDK 1.4.2 DR2, OSX 10.3.2.... - bill -- http://www.hutten.org/bill/
_______________________________________________ java-dev mailing list |
email@hidden Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/java-dev Be sure to read the
FAQ http://developer.apple.com/java/faq/ before posting Do not post admin
requests to the list. They will be ignored.


~~~~~~~~~~~~~~~
Erich G. Roth, Ph.D.
Onset Computer Corporation
Bourne, MA
www.onsetcomp.com
508.759.9500
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




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.