Well, it's amazing, but this worked. I swear i would have never resoved
this problem if you didn't help me. And as far as i remeber it was
mentioned in neither of numerious FAQs i read in vain attempts to find
the answer to the question. But another problem arised. Now i got the
following error:

---------------------------
Error: in loading image

java.lang.NullPointerException

        at
com.sun.j3d.utils.image.TextureLoader.getTexture(TextureLoader.java:342)

        at ColumnScene.<init>(ColumnScene.java:70)

        at ExClip.buildScene(ExClip.java:98)
        .........

---------------------------

Remember, the applet i'm trying to run DID work as an application. All i
did was putting appropriate html into the directory with already
compiled classes. I ran applet in NS4.61 and tried to use ".", "./" as a
codebase or don't use codebase at all. I tried to put codebase in front
of and behind of code parameter. But nothing helped. Possilby that's
because an external file is being read and some kind of security
violation happens again.

If anybody could help me with this, please, do so. I do appreciate your
efforts.

vladimir

[EMAIL PROTECTED] wrote:
>
> 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 ]

--
>~~~~~~~<============>~~~~~~~<
Join in Java community now!
http://javacafe.virtualave.net
>~~~~~~~<============>~~~~~~~<

===========================================================================
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