This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
(it makes no difference where I attempt to read on the filesystem, I've already fiddled around with that).
The root of it all is to use a file chooser to save a .png to the hard drive. The above error is caused by it attempting to set a default path to save the .pngs too, but if I take that out it still falls over, just on writing the file instead of reading. All the (many) tutorials I've read just talk about the requirement to sign the applet, but it is signed and the certificate accepted, still no joy. There is some talk about Java Web Start and bugs I noticed after rooting through Google, but that doesn't apply to me.
Apologies if I'm stirring up this thread again, but I have a very similar issue on hand.
I had an applet which captured a screenshot of the client's workstation and saved it onto a predetermined location on the client's file system, from where my application picked it up for an e-mail attachment.
I had modified the code using the Java Swing API such that the applet prompts the user with a save file dialog as to where he/she wants to save the screenshot on their file system.
My predicament is elaborated in my latest post HERE.
I want to give my applet full read rights to the client's file system without the client having to manually configure an appropriate policy to this effect at his end.
I have self-signed my applet and it is able to write the screenshot onto the client's file system inside a privileged code block. I have put the other code which requires read rights within the same block, but it doesn't appear to be working.
How do I achieve this?
Thank you for your time. [ July 02, 2008: Message edited by: Sridhar Venkataraman ]
Joined: May 22, 2006
Solved the object expected issue, but still in the dark about how to make the file save dialog stay in focus immediately upon being fired.
I managed to bypass the security restriction (It surprised me because I did not explicity do anything in the code which dealt with security).
[ July 02, 2008: Message edited by: Sridhar Venkataraman ] [ July 02, 2008: Message edited by: Sridhar Venkataraman ]