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>

[923 byte] By [cherrynana] at [2007-11-25 20:35:27]
# 1
This forum is specific to the Message Queue product ....for general questions, you may want to start at the "new to java" forum http://forum.java.sun.com/forum.jspa?forumID=54
Linda_Schneider at 2007-7-4 18:05:04 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...