download and extract jar file from applet
843807Aug 31 2005 — edited Sep 5 2005Can any one provide me a solution for my below problem. Thanks in advance for all the suggestions.
I want my applet to download a jar file, extract into users home directory by creating a folder and then set the created folder to java library path.
My applet html file is in "root" directory. The applet is included into applet.jar and placed under "lib" directory which is under "root" directory.
Now i also had another jar file(contains dlls what I packed) under the same lib folder.
The below is the following directory structure in my server.
root ---
|
|
default.html
lib--
|
|
applet.jar - contains applet related classes
native.jar - contains dlls which are to be loaded
When a client downloads my applet, it should copy the native.jar and then extract into a new folder under user home directory. Then set this folder to java library path.
Regards
raman kumar