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!

download and extract jar file from applet

843807Aug 31 2005 — edited Sep 5 2005
Can 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2005
Added on Aug 31 2005
8 comments
427 views