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!

Using JWS to have others files in cache

843802Dec 5 2006 — edited Jan 4 2007
Hi,
my title is not so meaningfull of my problem but i wasn't able to tell it into one phrase. So, my application currently use Java Webstart. I have many others files like images, textures, sounds, ... that i put manually on computer and by a homemade process i update when it's time too and things like Java WebStart do automaticaly with my application.

You know how it work, as soon as i put a new jar of my application, JWS download the new one into the cache dir to execute it. Now i would like to make JWS handle my others files like images, sounds, ... So it could put a new version of the file into the JWS cache directory when a newer one is put on the server.

The only way i found is to have my files into a jar file, cause JWS seems to don't manage others files type. I could live with this one. Now i would like, to dynamicaly load the data into the jar file that JWS put into the cache dir. My applet is signed so i could read file on user's computer. The problem is that JWS rename the jar files, example, test.jar coulb be on the computer RMtest.jar or RTtest.jar, ... So i could easily retrive the folder where is it with the getCodeBase but i don't know how to get my jar renamed by JWS.

So my question is, how can i do what i want?

Sorry if it's not totaly clear, i'm not english.
If you need more explination, please let me know

Thx a lot
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2007
Added on Dec 5 2006
5 comments
254 views