Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Unloading Native Libraries Solutions

843829Oct 7 2004 — edited Feb 29 2008
Hi all,
I have been reading through the different threads on this topic and have seen two reoccuring solutions being posted:
a)Use custom class loader for loading and use GC for unloading
b)Use a c/c++ wrapper library to load/unload libraries

I have a couple of questions:

1) Are there any changes in J2SE 5.0 that address the particular problem of wanting to unload a library?

2)In regards to solution b, is the c/c++ wrapper using windows libraries to load/unload the dll, or is it using native methods to interact with the jvm to load/unload dll's.

Also, if anyone has heard of any different solutions I would be interested in hearing.

Thanks in advance
Chetan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2008
Added on Oct 7 2004
10 comments
1,928 views