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: Unloading a JNI lib at runtime



Moises Lejter wrote:

I have a vague memory that native libraries are linked into a JVM on a class-loader-specific basis, and I have another vague memory that there is no unload() for native libraries ...

I happened to be looking at this today, and ran into this quote from the JNI 5.0 spec:


In the JDK, each class loader manages its own set of native libraries. *The same JNI native library cannot be loaded into more than one class loader.* Doing so causes |UnsatisfiedLinkError| to be thrown.

Moises


_______________________________________________ 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: 
 >Unloading a JNI lib at runtime (From: OL&L Lists <email@hidden>)
 >Re: Unloading a JNI lib at runtime (From: Moises Lejter <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.