Re: Making Java Calls from Objective-C !!
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