Thanks, John .

I am sorry for this mistake.

So, KP, you may do following:

 Do the following:

 1) Choose  "Add Policy Entry"
 2.1) In the appearing dialog box, on CodeBase type "file:C:/*";
 2.2) In the same appearing dialog box click on "Add Permission"
 3) In the next appearing box,
      3.1) click in the combo "Permissions"  and choose "FilePermission"
      3.2) in the compo "Target Name " choose "<<ALL Files>>"
      3.3) in the Actions combo choose  what kind of operation would like
enable: read,write
 4) Save the file.

These steps above will add the following lives in your java.policy:

grant codeBase "file:c:/*" {
  permission java.io.FilePermission "<<ALL FILES>>", "read, write";
};

This procedure grants to applets running FROM your drive C:\  to read and
write files.

PLEASE PLEASE PLEASE

Using polcytool.exe, in the  main screen with your java.policy loaded,
remove the Policy Entries with "CodeBase <ALL>".

OR

Using your Textpad/notepad edit your java.policy file remove the grant :

 grant {
   permission java.security.AllPermission;
 };

As  John alerted below, granting all permission  enables any applet from
every where to read/write/delete your files.
This is no good.
END END END END END

Any comment are welcome.



Alessandro Borges






----- Original Message -----
From: "John Wright" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 02, 2002 8:27 AM
Subject: Re: [JAVA3D] showing applet in web browser...


> Alessandro,
>
> You're also granting every other applet in the world permission to muck
> up your system too.  In other words you've just removed Java's
> security.  I'd advise that you only permissions into a specific
> directory.
>
> - John Wright
> Starfire Research
>
> >
> > ----- Original Message -----
> > From: "Karl Parry" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, August 02, 2002 6:22 AM
> > Subject: [JAVA3D] showing applet in web browser...
> >
> > > Hi,
> > > I have my applet placed within a HTML file but when I
> > > run the web browser I get the following error:
> > >
> > > exception: access
> > > denied(java.lang.RuntimePermission...
> > >
> > > I have a feeling it's something to do with security
> > > poilcies...
> > >
> > > The thing is all the examples from the Java3D API work
> > > in the web browser, but my code won't work...
> > >
> > > whats happening, anyone?
> > >
> > > Cheers
> > > KP



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002

_______________________________________________________________________
Yahoo! PageBuilder
O super editor para cria��o de sites: � gr�tis, f�cil e r�pido.
http://br.geocities.yahoo.com/v/pb.html

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