• 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: Creating a JavaVM with JNI & Re:JavaBridge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a JavaVM with JNI & Re:JavaBridge


  • Subject: Re: Creating a JavaVM with JNI & Re:JavaBridge
  • From: Phil <email@hidden>
  • Date: Sun, 6 Mar 2005 21:27:34 +1300

On Sat, 5 Mar 2005 20:13:45 -0600, James B. Tuley <email@hidden> wrote:
> Yeah but if you can't instantiate Java objects from Obj-C, it kind of
> makes this statement pointless "The Java bridge lets you write code in
> one language that can reference an object in the other language. Java
> objects can thus coexist with Objective-C ones in either language
> environment"

Also, instantiating Java objects in Obj-C is shockingly easy compared
to the other way around.

The issue I face in my app (currently in the design-thing so I can
play around with this for a while), is that I need to instantiate Java
in Obj-C (nothing but a few library calls really).

I can either go with JNI (which many people seem to be pushing me
towards), and essentially build my own version of the Java Bridge so I
don't have to mess around with C calls all over the place. I
personally can't see the advantage of this - other than, being able to
see that I'm not using a potentially legacy (but technically
liberating) technology.

Or I can use the bridge, which would save me a heap of time and allow
me to easily push through many existing Foundation objects without
having to write my own wrappers to jstrings and jobects. The downside
being that I get a slower load time and using potentially legacy tech.

> > DTS told me.
>
> ::hands up in there air::

Would they care to share this with their developers who use this stuff?

Either way, I don't see them removing it anytime soon (otherwise, I
wouldn't think Cocoa-Java support in Xcode would've made it), they've
left it in long enough, and promoted it for long enough to create
developers that use it (in one way or another).

-Phil
 _______________________________________________
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

  • Follow-Ups:
    • Re: Creating a JavaVM with JNI & Re:JavaBridge
      • From: Byron Wright <email@hidden>
References: 
 >Creating a JavaVM with JNI (From: Phil <email@hidden>)
 >Re: Creating a JavaVM with JNI & Re:JavaBridge (From: "James B. Tuley" <email@hidden>)
 >Re: Creating a JavaVM with JNI & Re:JavaBridge (From: Finlay Dobbie <email@hidden>)
 >Re: Creating a JavaVM with JNI & Re:JavaBridge (From: "James B. Tuley" <email@hidden>)

  • Prev by Date: Re: bindings for nsmatrix
  • Next by Date: Re: How to make key shortcuts and mouse click trigger controlTextDidEndEditing:
  • Previous by thread: Re: Creating a JavaVM with JNI & Re:JavaBridge
  • Next by thread: Re: Creating a JavaVM with JNI & Re:JavaBridge
  • Index(es):
    • Date
    • Thread