Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JNI compilation issue.



I'm taking my first test dive into the world of JNI for a project, and I'm running into an issue. Given it's the first time that I've done something of this nature, I'm not totally convinced that I'm not doing something incredibly stupid. However, my issue is this.

In my C portion of my library, I'm trying to use FindClass, as well as other functions.
<jni.h> is included properly.
The compile steps look something like this:


cc -Wall -c -I/System/Library/Frameworks/JavaVM.framework/Headers foo.c
cc -Wall -dynamiclib -o libfoo.jnilib foo.o -framework JavaVM

It looks as though FindClass() and the other functions that I'm trying to employ are not declared in <jni.h> I think that's the first step. What should I be including here? Once that's done, I'll tackle the Undefined Symbols.

Thanks in advance.
--
Robert M. Zigweid                    http://robert.zigweid.net
email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.