• 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: Making Java Calls from Objective-C !!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making Java Calls from Objective-C !!


  • Subject: Re: Making Java Calls from Objective-C !!
  • From: Greg Guerin <email@hidden>
  • Date: Fri, 8 Oct 2010 15:44:31 -0700

Nick Zitzmann wrote:

So I found this, which has an answer that is not "use the bridge" but I haven't tried it myself: <http://stackoverflow.com/questions/ 1822549/calling-java-library-from-objective-c-on-mac>

One of its answers is "use TCP/IP". I have done that, and it works well. Same-process JVM via JNI's invocation API, or different process running /usr/bin/java via NSTask. For security, confine the network to loopback interface (lo0), which is quite easy to do in Java.


I chose JSON as the data format: simple, compact, readily available libs for Cocoa and Java. I also used CocoaAsyncSocket on the Objective-C side, which simplified use of sockets and streams. YMMV.

  -- GG

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Prev by Date: UITableViewCell Display Issue
  • Next by Date: Freeing the property list returned by class_copyPropertyList()?
  • Previous by thread: Re: Making Java Calls from Objective-C !!
  • Next by thread: UITableViewCell Display Issue
  • Index(es):
    • Date
    • Thread