appletviewer imageJA trouble

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

appletviewer imageJA trouble

Giuseppe De Marco
Hi all,

If I test imageJA with appletviewer I get this error:

appletviewer /home/aquarius/tmp/applet.html
java.security.AccessControlException: access denied
(java.util.PropertyPermission jnlp read)

I modified the policy :
nano /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/security/java.policy

Inserting this:

grant {
  permission java.security.AllPermission;
  permission java.util.PropertyPermission "java.version", "read";
  permission java.util.PropertyPermission "jnlp", "read";

};

But errors remains, any suggestions ?

anticipate thanks
giuseppe




Reply | Threaded
Open this post in threaded view
|

Re: appletviewer imageJA trouble

Giuseppe De Marco
For this error:

appletviewer /home/aquarius/tmp/applet.html
java.security.AccessControlException: access denied
(java.util.PropertyPermission jnlp read)


I resolved creating a "policy" file with theese statement:

 grant codeBase "http://127.0.0.1:8000/-" {
   permission java.io.FilePermission "<<ALL FILES>>", "read, write, execute,
delete";
   permission java.net.SocketPermission "*", "accept, connect, listen, resolve";
   permission java.util.PropertyPermission "*", "read, write";
   permission java.lang.RuntimePermission "*";
   permission java.awt.AWTPermission "showWindowWithoutWarningBanner";
 };

after this, I added some runtime options for policy inclusion:

appletviewer -J-Djava.security.policy=policy  /home/aquarius/tmp/applet.html

that's all :)