I have tried to use the new project jni-project in Xcode 3.1.1 on a
machine running osx Mac OS X 10.5.6 (9G55) and what i am doing is
really basic, just creating a new project and clicking build and run
without altering the code at all. The build seems to work with out
error but when the code runs I get a
Exception in thread "main" java.lang.UnsatisfiedLinkError:
message followed by the full filename and path of the .jnilib
what I am doing wrong?
[..]
. The only other perhaps relevant information i can think of is if I
type java -version I get
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
You are probably building jni as i386 binary only and running it with
64bit Java 6. You need to build jni library for i386 and x86_64 and
ppc architectures. This way it will run on Intel and PowerPC macs. FOr
testing purposes just run your example with Java 5.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden