In order for an applet to read and write to a local file system, it's "sandbox" must be set up correctly.  Your program will work fine if you either:
 
 a) convert to an application
 b) create a signed applet and pay the "Gods" of verisign $400 a year.
 c) modify your applet permissions from your applet control panel (How do this varies from system
      to system, complicating matters when trying to deploy and writing the user manual! ;-) .)
 
If you find out a d) please let me know ;-)
 
Edward Becker
 
----- Original Message -----
Sent: Monday, July 10, 2000 11:04 AM
Subject: Re: [JAVA3D] Helllllllllllllllllp!

You cannot access local files from an Applet due to security restrictions.
Your code should work fine as an application.
----- Original Message -----
From: grace Wang
Sent: Sunday, July 09, 2000 3:45 AM
Subject: [JAVA3D] Helllllllllllllllllp!

Hi, everyone,
I am new java3d user and stuck again. I add JFileChooser in my swing applet
to choose file. before I added it , everything is fine, after adding , it
give me error: applet not init; and following(WHICH MAKE ME CRAZY). I
attached my java applet and html file, please take a look and give me an
idea. Thank you very much!

java.security.AccessControlException: access denied
(java.util.PropertyPermissio
n user.home read)
        at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java, Compiled Code)
        at
java.security.AccessController.checkPermission(AccessController.java,
Compiled Code)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java,
Compi
led Code)
        at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java, C
ompiled Code)
        at java.lang.System.getProperty(System.java, Compiled Code)
        at
javax.swing.filechooser.FileSystemView.getHomeDirectory(FileSystemVie
w.java:113)
        at
javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:408)
        at javax.swing.JFileChooser.<init>(JFileChooser.java:271)
        at javax.swing.JFileChooser.<init>(JFileChooser.java:233)
        at MyJava3.<init>(MyJava3.java:27)
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:241)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:508)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:444)
        at sun.applet.AppletPanel.run(AppletPanel.java:282)
        at java.lang.Thread.run(Thread.java:479)

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

Reply via email to