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 Lib Location when Loading from Java Applet on OS 10.2



Hi,
I have a JNI library that i need to launch from a Java
Applet on OS 10.2. I'm having problems finding the
correct place to put the lib. I tried to put it in all
the recommended places that i found in Apple's
documentation, but this only works for me for Java
applications, not for applet running from IE browser.
Here's what I tried:
the library is named libxxx.jnilib, as required. If I
locate the library in /Library/Java/Extensions folder
and run a Java application such as the JNISample, the
lib is found and it works fine. However, in my case
the library is loaded from an applet that's activated
from an IE web page. More specifically, an html page
with Java script loads an applet that is wrapped in a
signed jar file from our server. This applet calls
"System.loadLibrary(xxx)". On OS 9, I put the native
library under "Extensions:MRJ Libraries" and it is
loaded successfully. On OS X, when I put it under
"/Library/Java/Extensions" it cannot be loaded (even
though it can be loaded from the same location if
running a Java application and not an applet from the
IE). The only place it can be loaded from by the
applet is
"/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Libraries/".
This location is problematic since it might change in
future versions and it can only be accessed by root
user, which means I cannot install it with an
installer (no permissions).

Any ideas???

thanks,
Noa


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



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.