A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
How List the files in directory through Applet code
Joined: Mar 21, 2008
Dec 05, 2008 06:36:00
I have a "Test.html" file and other supporting directories in "MyFolder"
In Test.html file I have the following tags with other text..
id="listF" code="AppletClass.class" width="1" height="1">
<param name="archive" value="listfiles.jar">
In listfiles.jar, i have a class file called as "AppletClass.class"
In this file (AppletClass.java) I am writing following code
/*where folder1 is one of the dependent folder residing with "Test.html"*/
File f=new file("folder1");
After adding these lines i repackaged to jar file and accessed Test.html
Now i am getting the following error..
:access denied (
I check, the folder doesn't have any permissions.
Please let me know how to list the files and get solution for this problem...
Joined: Mar 22, 2005
Dec 06, 2008 00:44:00
can't access the local file system as a security measure. To get around that, they need to be signed, or the local security policy altered. See
I agree. Here's the link:
subject: How List the files in directory through Applet code
Using ANT to get a ZIP of changed folders
Show dir and file structure exactly as it is
how to show html page
Can JSP handle this project?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015