Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

How to delete a loaded DLL from an applet

843807Dec 21 2005 — edited Dec 21 2005
I succesfully wrote some code that extracts a Windows DLL from the applet jar to a temporary file and loads the extracted DLL (using a System.load call).

Now I want to remove the DLL after the applet is closed. I tried to use the shutdown hook functionality of the java.lang.Runtime object, but this doesn't seem to work for an applet.

Anyone any ideas about how to tackle this? Note that I'm not interested in installing the DLL's in for example the windows/system32 directory. To prevent any potential DLL versioning troubles I just want to use the DLL's as a temp file and remove them afterwards.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 18 2006
Added on Dec 21 2005
1 comment
142 views