Any ideas? I can get my library to compile OK, but I use this command to build:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>>cc -shared -I/usr/local/java/include -I/System/Library/Frameworks/JavaVM.framework/Headers/ HelloWorldImp.c -arch ppc -o libhello.jnilib</font>[/code]
And my lib builds, but when I execute I get this:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
>java -Djava.library.path=/Users/bradleys HelloWorld
dyld: /System/Library/Frameworks/JavaVM.framework/Versions/<font color = blue>1.3</font>/Commands/java malformed library: /Users/bradleys/libhello.jnilib (not a Mach-O library file, bad filetype value)</font>[/code]
This is specifically with regards to JNI, but I can't even get a library to build that is of the right type.
Does anyone know what a .jnilib is?