Signed Applet and no permission

Hi,

we have an applet which writes a file on the local disc. Therefore this applet is signed with a valid verisign certificate. Everything works perfect, as long we use the vm 1.4.2_08. Now we changed the vm to 1.4.2_10 and writing a file is no more possible.

I never used a policy file, because we have a proper signed applet. I found many articles, which all say that if you have a signed applet a modification of security files is not neccessary.

If I modify the java.policy and add these lines:

permission java.awt.AWTPermission "readDisplayPixels";

permission java.awt.AWTPermission "createRobot";

permission java.io.FilePermission "${user.home}/screenshot.jpg", "read,write,delete";

everything works ok. But our applet runs on more than 40.000 clients. I am not willing to modify all clients. There must be another solution.

Any hint is appreciated.

I have checked some more vm. The problem occurs also with the vm 1.4.2_04.

thx thorsti

Message was edited by:

thorsti16

[1059 byte] By [thorsti16a] at [2007-10-3 2:42:13]
# 1

Try to use doPrivileged or do the "privileged" action in a thread started

in run.

Is the jre asking the user the "do you trust question"? If not someone might

have switched off trusting signed applets in the java.policy (like a profesional

company where backoffice has a say in what to trust, not the user).

Signing applets:

http://forum.java.sun.com/thread.jsp?forum=63&thread=524815

second post and reply 18 for the java class file using doprivileged

A Full trace might help us out:

http://forum.java.sun.com/thread.jspa?threadID=656028

harmmeijera at 2007-7-14 19:40:59 > top of Java-index,Security,Signed Applets...
# 2
Hi harmmeijer,thanks a lot for your advice. Yes, the problem was the JScript thread, which tries to do some restricted operations. I'm going to transfer your DukeDollars.cheers thorsti
thorsti16a at 2007-7-14 19:40:59 > top of Java-index,Security,Signed Applets...