Re: Using AWT in Cocoa-Java app
Re: Using AWT in Cocoa-Java app
- Subject: Re: Using AWT in Cocoa-Java app
- From: Marc Liyanage <email@hidden>
- Date: Sat, 7 May 2005 22:40:34 +0200
On 07.05.2005, at 17:35, Raheel Ahmad wrote:
I have been trying to use a Java library with my Cocoa app, which
is being done in Cocoa-Java. Whenever I try to instantiate a class
from AWT package (BufferedImage specifically), i get a runtime
error: "Apple AWT Java VM was loaded on first thread -- can't start
AWT." and a signal 11 exit. What am I doing wrong?
I had the same problem, although my app is written in Objective-C. It
calls Java XML graphics libraries using the Java Bridge.
I had to offload any calls to AWT-related Java APIs to a separate
thread:
http://www.entropy.ch/phpbb2/viewtopic.php?p=6992#6992
There's also some related code here:
http://www.entropy.ch/viewcvs/trunk/JavaBridgeAWTTest/
_________________________________________________________________
Marc Liyanage http://www.entropy.ch
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden