• 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
Using Java objects in ObjC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using Java objects in ObjC


  • Subject: Using Java objects in ObjC
  • From: Joris Kluivers <email@hidden>
  • Date: Sun, 26 Dec 2004 16:25:59 +0100

Hi,

I'm trying to use some Java objects in my Cocoa application. I can succesfully create a java object and send messages to it. But when i try to initiate a object from Java using a constructor which might throw an exception it still works, unless the constructor actually throws an exception. Then I get the following error in my run log and the application quits:

ObjCJava WARNING:
jobjc_jvm_newObject(): constructor with signature (Ljava/lang/String;)V on class com/kluivers/calendar/Calendar failed (should morph the java exception)


But i learned in the Java Bridge documentation and some articles i read on the Java Bridge that Cocoa automatically morphs java Exceptions into NSException objects.
Is this a bug? Shouldn't my cocoa application be able to catch this exception?


Is there anyone who did get this working?

Joris Kluivers

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Prev by Date: How do I obtain the default country?
  • Next by Date: Re: how to insert a NSAttributedString into a NSTextview ?
  • Previous by thread: How do I obtain the default country?
  • Next by thread: NSArrayController for unordered collection (non-array)
  • Index(es):
    • Date
    • Thread