java-dev

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: Xcode -> Java Native Interface -> Eclipse Moises Lejter Fri Jul 11 12:02:15 2008

I've never done this before, myself, so take the following with a grain of salt... But I did not think you would need to add a new build phase, but rather just
add to the existing one(s) the extra C files and frameworks you needed...
I would check that the jnilib really does have the functions you expected in it...

Moises

Matthew Grivich wrote:
In Xcode:  I start with the jni hello world.  I add the C files from the
third party api.  I write the appropriate wrapper code to do some simple
operations with the camera (open, snap, and close) from java.  In order
to get things to link properly, I add a build phase to the JNILib
target.  This build phase is Link Binary With Libraries.  Right click
this, then Add -> Existing Frameworks -> select the five necessary third
party frameworks.  These frameworks are located in /Library/Frameworks.
This all works.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/alexiscircle%40gmail.com

This email sent to [EMAIL PROTECTED]