Hi, You cant read a file from the client machine where you are running a unsigned applet. There are three options -
1. turn your applet into an application. 2. lower the java security by changing the java.policy file in your jre( which the browser plug-in is using) and add a line - permission java.security.AllPermission; - but this is dangerous as your computer will allow any applet to access your disk and that can be potentially dangerous 3. sign your applet. thanks anirban ----- Original Message ----- From: "Silvano Maneck Malfatti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 10, 2002 6:06 PM Subject: [JAVA3D] security.AccessControlException > Hi everybody.. > > > I am development an applet that try to read a vrml file using the vrml97 > loader, but when I try to run it, this exception happens.. > > > > java.security.AccessControlException: access denied > (java.util.PropertyPermission * read,write) > > at java.security.AccessControlContext.checkPermission > (AccessControlContext.java:270) > > at java.security.AccessController.checkPermission > (AccessController.java:401) > > at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) > > at java.lang.SecurityManager.checkPropertiesAccess > (SecurityManager.java:1259) > > at java.lang.System.getProperties(System.java:500) > > at com.sun.j3d.loaders.vrml97.VrmlLoader.pathToURL(VrmlLoader.java:143) > > at com.sun.j3d.loaders.vrml97.VrmlLoader.load(VrmlLoader.java:104) > > at Universe.loadAvatar(Universe.java:198) > > at Universe.<init>(Universe.java:126) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance > (NativeConstructorAccessorImpl.java:39) > > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance > (DelegatingConstructorAccessorImpl.java:27) > > at java.lang.reflect.Constructor.newInstance(Constructor.java:274) > > at java.lang.Class.newInstance0(Class.java:296) > > at java.lang.Class.newInstance(Class.java:249) > > at sun.applet.AppletPanel.createApplet(AppletPanel.java:548) > > at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1621) > > at sun.applet.AppletPanel.runLoader(AppletPanel.java:477) > > at sun.applet.AppletPanel.run(AppletPanel.java:290) > > at java.lang.Thread.run(Thread.java:536) > > > > > is necessary to use a policy permission? > > > thanks a lot. > > > > /********************************************* > SILVANO MALFATTI > COMPUTER SCIENCE - URI University > HOME - www.urisan.tche.br/~smalfatti > ********************************************/ > > > > > ------------------------------------------------- > URI - Campus de Santo Angelo-RS > http://www.urisan.tche.br > > =========================================================================== > 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". > =========================================================================== 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".
