Exactly how did you compile it? Did you use Xcode or the command-
line?
Which version of Xcode? What command-line.
This is what I use to generate libDrm.jnilib
1- Edit tv.server.DrmNative class and compilte it using Netbeans 6.0.
Netbeans is set to use Java6 (Preview8 downloaded from
connect.apple.com).
In Terminal ,run
2- javah -classpath /Volumes/Build/Builds_Data/BInstance.build/
classes -jni tv.server.DrmNative
3- cc -g -I/System/Library/Frameworks/JavaVM.framework/Headers -c -o
DrmNativeImpl.o DrmNativeImpl.c
4- cc -o libDrm.jnilib DrmNativeImpl.o -framework JavaVM
And I put libDrm.jnilib in /usr/lib/java
and here is output from otool :
>otool -L /usr/lib/java/libDrm.jnilib
/usr/lib/java/libDrm.jnilib:
Drmlib.jnilib (compatibility version 0.0.0, current version 0.0.0)
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
(compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 111.0.0)
thanks
-Ucef
file /usr/lib/java/libDrm.jnilib
/usr/lib/java/libDrm.dylib: Mach-O dynamically linked shared
library i386
...
I m sure that my jnilib is for 64-bit
The output from the 'file' command strongly suggests otherwise.
It says the library was compiled only for i386, which is the 32-bit
architecture. This is why your lib worked on Java 5: Java 5 has a
32-bit
implementation, and that is also the command-line default. Java 6
DP has
no 32-bit implementation, so your 32-bit lib can't possibly work on
Java 6
DP.
If you believe your lib was compiled for 64-bit, you will have to
tell us
what you did to build the lib, with what tools and settings, because
the
evidence says the build procedure didn't do what you expected.
-- GG
_______________________________________________
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
_______________________________________________
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