How to delete a loaded DLL from an applet
843807Dec 21 2005 — edited Dec 21 2005I 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.