Hi, I am designing a web-based GUI for the client side. I need the applet to access the local hard disk using JFileChooser. Also, I need to integrate CORBA stuff to my applet.
Is it possible to somehow set the java security policy file to allow applet to be able to do these tasks? I am not familar with java security. So could anyone tell me how to set the security file step by step.
The thing is I want to use a JFileChooser in the applet. But it seems the applet cant even be compiled... :-(
Anybody knows how to solve this problem. Or is there any other way to explore the client's file system?
Joined: Oct 08, 2003
I just tried to run the applet code in eclipse. I used to run Java programs in shell windows under Linux. This is the first time I run an applet in eclipse. And it works and can access the local file system. Why is that? Dosen't applets in eclipse have sandbox constraint?
I am rather confused now. Could anybody explain it?
You can run an applet as a local application. The most common way to do this is through the JDK tool appletviewer. When an applet is run as a local application, it is NOT sandboxed. Eclipse is probably using appletviewer to run your applet.