aspose file tools*
The moose likes Applets and the fly likes This can be done, but the question is HOW? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "This can be done, but the question is HOW?" Watch "This can be done, but the question is HOW?" New topic
Author

This can be done, but the question is HOW?

Gresan Tuffton
Greenhorn

Joined: Sep 09, 2003
Posts: 3
Dear Ranchers,
Can any one suggest me of a java script that allows the jar file to paste in the temporary internet files folder.
I have made some modification in a jar file and want that jar file to go in the temporary internet files folder, which under normal circumstances does not get paste in that folder (not only jar, but does not allow any file to paste in there). For instance say a chat applet, to which I have made some modifications in the class files and want that modified jar applet to get in the temporary internet files folder and make chat program use that instead of the original one. I tried with keeping my jar file into the localhost and downloading it in the temporary internet files folder by giving the source of locally hosted jar applet, but it shows some security error on the status bar of the browser and does not connect to the remote server. Seems like it could not open the port.
If someone can suggest me of the method by which I can use the modified jar file to connect to the server from where it originated, either by downloading the file to the temporary internet file folder or from the localhost.
This can be done, but the question is HOW CAN THIS BE DONE? Great ranchers, Please help this poor rancher.
Thanks,
Gresan
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
Why do you think this can be done? The "sandbox" model for applet security specifically prohibits this behavior. If you want your applet to be able to write to the local file system, you'll have to sign the jar file containing the applet. Any changes you make to the jar file will invalidate the digital certificate assigned to that jar file, and your applet will no longer work.
Can you state in higher-level terms (from the point of view of application features) what you are really trying to do?


Rob
SCJP 1.4
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: This can be done, but the question is HOW?