Mailing Lists: Apple Mailing Lists

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

Re: JNI Lib Location when Loading from Java Applet on OS 10.2



On Monday, July 7, 2003, at 01:00 AM, email@hidden wrote:

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

Try creating a folder named 'ppc' in /Library/Java/Extensions, and then put your jni library there. I've looked into the classloader code just enough to know that this is necessary, but haven't dug down into the code to find out why -- it's all shared code from Sun.

I can't recall now if you need to modify your default security policy to grant permission to read from that directory as well, but doing so isn't that hard -- just go to /Library/Java/Home/lib/security and look at java.policy.

Hope that helps,
Scott

------------------
Scott Kovatch
Apple Computer
Java Runtime Classes
Cleveland Hts, OH
email@hidden

"Everybody needs money! That's why they call it money!"
_______________________________________________
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.