> 1.Is there any way i can specify in the HTML like > use -D option and the policy file while invoking > the applet.
To specify policy file open Java console go to Basic tab and in the field Java Runtime Parameters type something like this: -Djava.security.policy=http://ilyak-2k/~ilyak/wcc.policy You can point any file local or remote... _Ilya --- John Ghidiu <[EMAIL PROTECTED]> wrote: > Saminathan, > > As far as I know, you cannot have an applet dictate > which policy file to use. If you could, then > security would be a joke. When using RMI, since you > start the server yourself, you can choose the policy > file (the same holds true for a Java client). What > this means for you is that if you want the applet to > have rights (outside of the sandbox) on a client > machine, either sign the jar or change the clients > policy file. At my workplace, we have an entry like > this: > > grant CodeBase " http://dev/-" { > permission java.security.AllPermission; > }; > > Which grants any applet coming from the development > machine all privileges. > > Regards, > John > > John Ghidiu > Benderson Development Company Inc. > [EMAIL PROTECTED] > (716) 878-9376 > > -----Original Message----- > From: SAMINATHAN > [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 10, 2002 00:25 > To: JDJList > Subject: [jdjlist] Access Denied exception from > Applet > > > Hi all > > We are invoking an applet from our HTML > for doing some operation in the client machine.And > we are getting the access denied exception.We > created our own policy file and try to include in > our Jar. > > But the problem is that it is not finding the policy > file in the Jar. > > 1.Is there any way i can specify in the HTML like > use -D option and the policy file while invoking > the applet. > > And how do i notify the applet that it is supposed > to use the local Policy file , instead of original > JVM policy file. > > I had done the same thing , while running a RMI > server, i used to run my RMI server like this Java > - D mypolicy.policy JavaFile.But i don't have any > idea how to do the same thing in the case of applet. > > Some one pl throw light on this. > > Thanks and Regards > Saminathan. > __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
