• 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
[Q] Cocoa-Java bridge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] Cocoa-Java bridge


  • Subject: [Q] Cocoa-Java bridge
  • From: JongAm Park <email@hidden>
  • Date: Wed, 28 Mar 2007 14:57:01 -0700

Hello.

May I ask about the Cocoa-Java bridge? Yes. I know that the Cocoa-Java integration is not supported for the features after the MacOS X Tiger. But I'm not trying to use some new Cocoa feature using the Java.

I have a Java class I wrote. Let's say that it is a myClass.
When I try loading the "myClass" using the NSClassFromString(@"myClass"),
it returns 0. However, if I try loading some predefined Java class, like java.net.UR, it loads the class successfully.


I put these keys and value pairs in the plist file.

<key>NSJavaNeeded</key>
<string>YES</string>

<key>NSJavaRoot</key>
<string>Contents/Resources</string>

<key>NSJavaPath</key>
<array>
 <string>myClass.jar</string>
</array>

Also, I setup the copy phase of the cocoa native target for copying the class of my Java class to its Contents/Resources.
But, strangely, it can't load the class.

Can someone tell me why and how to fix the problem?
( Would it be better to put the class itself instead of the .jar file? )

Or, is the Cocoa-Java bridge is totally abandoned now, so is the feature broken?

Then, I may need to use the JNI approach, but code structure I should take will be very cumbersome.

Thank you.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [Q] Cocoa-Java bridge
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: [KIND OF SOLVED] Re: PDFView won't display the first time?
  • Next by Date: NSString pedantic question
  • Previous by thread: NSTableView + NSArrayController: How to revert to 'natural' sort order?
  • Next by thread: Re: [Q] Cocoa-Java bridge
  • Index(es):
    • Date
    • Thread