Hi,
I need to copy dlls from server to client and execute it in client machine.
For this, I have used signed
applet and JNI.
Everything works fine. On click of my
jsp button; it calls applet ; the applet copies the dll in client machine and executes it.
One problem thats really eating my head now. If I click on the button again it throws Exception.
The reason : its unable to copy the second time. My browser and JRE have somehow locked the dll.
Something like.. trying to delete an already opened file.
Any idea how to overcome this? Any javascript or something to kill the JRE instance? or may be free or unload dll. How do i achieve this?
I also tried to do a check before downloading. i.e if file exists. SOme how thats also not working.