Java Security Example: Writing Files


Here's an applet that tries to write to the file /tmp/foo:

and here's the source.

This applet is signed by Duke - if you've configured your system to allow applets signed by Duke to run, go and check your /tmp area! (Or your c: drive, if you're running on a PC.) You'll find a file there named duke.txt, with an important message from Duke :-)


Back to the Java Security Page/a>