File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

This can be done, but the question is HOW?

Gresan Tuffton

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.
Rob Ross

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?

SCJP 1.4
I agree. Here's the link:
subject: This can be done, but the question is HOW?
Similar Threads
Location of downloaded archives
Java Script that allows to paste in temp folder
Compile and Deploy On WebLogic 7.0
Instance of Applet
calling createFile from within a jar