• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using AWT in Cocoa-Java app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Using AWT in Cocoa-Java app (From: Raheel Ahmad <email@hidden>)

  • Prev by Date: sync services and isync
  • Next by Date: NSSearchField Usage
  • Previous by thread: Using AWT in Cocoa-Java app
  • Next by thread: Re: Using AWT in Cocoa-Java app
  • Index(es):
    • Date
    • Thread