Mailing Lists: Apple Mailing Lists

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

Fwd: JNI work fine with default Java5 but not with javase6dp8



thanks for reply Greg,
here is a 64-bit Java 5 on Leopard, so you can run your 64-bit jnilib on
Java 5 and it should work.

yes , i had run my libDrm.jnilib on Default  Java 5 in Mac OS . And I was happy .  But this error happens only on Java 6 :-( .

-Ucef


Begin forwarded message:
From: Greg Guerin <email@hidden>
Date: April 18, 2008 3:34:03 PM EDT (CA)
Subject: Re: JNI work fine with default Java5 but not with javase6dp8

Youssef

I try to execute a simple JNI application and follows all steps to build
java app with native code. My class work fine with default java5se coming
with Leopard but when I compile and execute the same class with
javase6dp8, it throws this exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError:
/usr/lib/java/libDrm.dylib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1746)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)

Java 6 DP8 is 64-bit only.  So is DP9.  Read their release notes.

You will have to compile your JNI-lib for 64-bit.

There is a 64-bit Java 5 on Leopard, so you can run your 64-bit jnilib on
Java 5 and it should work.

 -- 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

This email sent to email@hidden

References: 
 >Re: JNI work fine with default Java5 but not with javase6dp8 (From: Greg Guerin <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.