java.security.Access denied exception
hello all,
iam new to java please help me .
my program has thrown the exception:
java.security.AccessControlException: access denied (java.io.FilePermission F:\
read)
using applets a dynamic jtree should be displayed.
when a user clicks a node a file should be retrived and display the directories and files in it.
the program code is:
public void mouseClicked(MouseEvent me)
{
TreePath tp = Tree.getPathForLocation(me.getX(),me.getY());
String dirname = tp.toString();
File f =new File("F:\\");
int w =st.length();
String y = st.substring(1,w-1);
File f2 = new File(y);
String v[] = f2.list90;
for(int u=0;u<v.length;u++)
{
System.out.println(v); //checking atleast o/p may display in command prompt.
}
}
any idea reply soon
it's very urgent.
usha>

