• 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: Differences between Cocoa and Cocoa-Java Projects/Targets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Differences between Cocoa and Cocoa-Java Projects/Targets


  • Subject: Re: Differences between Cocoa and Cocoa-Java Projects/Targets
  • From: Finlay Dobbie <email@hidden>
  • Date: Thu, 17 Feb 2005 00:39:35 +0000


On 17 Feb 2005, at 00:07, Lucien W. Dupont wrote:

On 2/16/05 10:35 AM, Finlay Dobbie wrote:

On Thu, 17 Feb 2005 03:52:01 +1300, Phil <email@hidden> wrote:
Hi,

I'm building a primarily Obj-C Cocoa application, but using a Java
library (via. the bridge), so I've created a Cocoa-Java project.

Just so you know, the bridge is obsolete and deprecated and you shouldn't rely on it. Use JNI instead.

I hadn't heard this - do you have a link or such that describes this, and
when it's going to happen?

The bridge documentation was under the "Legacy" section and now appears to have fully disappeared. You would be hard pressed to find any reference to the fact that NSClassFromString works with Java class names on the Apple site. DTS also recently confirmed this in an e-mail to me (this e-mail was devoid of any NDA headers, so I'm assuming it's meant to be public knowledge):


The Java bridge has been deemed a "legacy" technology for quite some time now. We recommend using JNI to interface Cocoa and Java, as it is the standard native interface provided by Sun. The JNI headers can be found in JavaVM.framework.

JNI - Java Native Interface
http://java.sun.com/j2se/1.4.2/docs/guide/jni/

Also, the SimpleJavaLauncher sample demonstrates how to start up a JVM from a native app, if you are starting off in Cocoa.

simpleJavaLauncher
http://developer.apple.com/samplecode/simpleJavaLauncher/ simpleJavaLauncher.html

I don't know what you mean by "when it's going to happen"...

 -- Finlay

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Differences between Cocoa and Cocoa-Java Projects/Targets (From: "Lucien W. Dupont" <email@hidden>)

  • Prev by Date: opening in a separate editor window
  • Next by Date: Re: Microprogramming
  • Previous by thread: Re: Differences between Cocoa and Cocoa-Java Projects/Targets
  • Next by thread: Re: Differences between Cocoa and Cocoa-Java Projects/Targets
  • Index(es):
    • Date
    • Thread