You cannot access local files from an Applet due to security
restrictions.
Your code should work fine as an application.
----- Original Message -----
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
|