Vladimir,

It looks like you need to modify your java.home/jre/lib/security/java.policy
file by adding a line like the following:

 permission java.lang.RuntimePermission "modifyThread";

You may also need the following, I know I did:

 permission java.lang.RuntimePermission "modifyThreadGroup";

They must go inside of an existing "grant" statement.  Or add one:

 grant [<options>]
  {
  permission java.lang.RuntimePermission "modifyThread";
  permission java.lang.RuntimePermission "modifyThreadGroup";
  };

I advise restricting the scope of the grant statement via the [<options>] as
much as possible to prevent any possible security holes.

Is this in the FAQ yet?
-Gary






Vladimir Olenin <[EMAIL PROTECTED]> on 06/22/99 03:33:35 PM
To: [EMAIL PROTECTED]
cc:  (bcc: Gary Moss/arl)
Subject: Running applet


Hi masters,

I always ran Java3D applications. But today there was a need to ran an
applet. I installed Java plug-in that is shipped together with JDK1.2.1
to C:\Program Files\.....\1.2, that is default directory. I also
installed Java3D library there. I also have Java3D library installed in
the dir JDK itself was installed. And when i tried to load applet got a
security exception in both IE5 and NS4.6. Here is what Java plug-in
console printed out:

--------------------------------
Java(TM) Plug-in

Using JRE version 1.2.1

User home directory = C:\WINDOWS

Proxy Configuration: no proxy



JAR cache enabled.

java.security.AccessControlException: access denied
(java.lang.RuntimePermission modifyThread )

        at java.security.AccessControlContext.checkPermission(Compiled Code)

        at java.security.AccessController.checkPermission(Compiled Code)

        at java.lang.SecurityManager.checkPermission(Compiled Code)

        at sun.applet.AppletSecurity.checkAccess(AppletSecurity.java:112)

        at java.lang.Thread.checkAccess(Thread.java:1043)

        at java.lang.Thread.setPriority(Thread.java:794)

 [ blah, blah, blah ]

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to