Is it Possible to Change the Jar File Names After Downloading at Client
Hi. All
Here I am tring toRename Jar file Names once after JWS Downloads at Client Place. But I don't know how to do this. I Searched in so many Blogs and Forums, but i failed to get Solution for this. As when JWS downloads Jars from server, its changes file names (prefixes with "RM" and "RT").So same way i want to change once after it downloads files. Can any body tels how to dot this. Really ... Help is appriciated
Thnx a lot for reading the above
Sreedhar P
# 2
Hi Caffeine0001
Frist let me Thn u for giving Respose.
Yah... thats a way to download the Jars from the Server into specific location without changing the Jar file Names. But is it possbile with JWS ?. Another doubt is
When JWS downloads Jars, it places in '...\javaws\http\....' , but can we have any option to place the 'JAR Files' while downloading, into any other folder Directly (I mean without any sub fodlers.. only Jars). ?
Once again thnx for giving reply Caffeine0001.
# 3
In 1.6 whether you download the jars file via an applet, automatically via java webstart or manually using HttpConnection, I believe the jar files get cached in the same location. Using HttpConnection allows you to copy them out of the cache to any place you want. You can also use Class.getResourceAsStream() to pull things out of the jars. So if your webstart jar contains another jar then you can get it out using Class.getResourceAsStream().
# 4
Hi chirajivi,
I am new to Java Web start. I used java web start and it showed that jar files are downloaded to my pc from remote server but when i tried to locate jar files on my PC, i could not find them. Are they appended with some other Extensions or some other form ? What is default location where JWS download on local machine. Appreciate your help.
# 5
Hi.. Kumaha
Jar Files will be Downloaded in to default cacher Location, if u dont giv any cache location already. The Default location is
"C:\Documents and Settings\<UserID>\Application Data\Sun\Java\Deployment\cache" for windows. There will be a folder called "javaws" , inside this ur all Jars will be placed. But the Jars will be renamed. It means those wil be prefixed with "RM" , "RT". Hope u got . Please call me for other conclutions.
bye 4 now
# 6
Note from other posts:
The content and format of the cache will and do change from version to version of javaws. It is highly unadvisable to build into you application relying on the location or format.
That being said, for 1.4.2 or 1.5.0, the location was as given: "C:\Documents and Settings\<UserID>\Application Data\Sun\Java\Deployment\cache\javaws", and in long path below that depending on the URL of the resource.
For version 6, the cache is in : "C:\Documents and Settings\<UserID>\Application Data\Sun\Java\Deployment\cache\6.0" and then in a directory below that named "0" thry "63", depending on the hash of the URL of the resource. The name will be completely obscure, there will be one binary index file with "idx" extension, and then the actual resource will be the file of the same name w/o any extension.
/Andy