Thanks Stan,
I did the same thing:
File dir = new File("config");
System.out.println(dir.getAbsolutePath());
String[] fileNames = dir.list();
But the issue is, When I run this code from main method it runs successfully and print absolute path perfectly but when I run it on server (It is a Web Application) it doesn't work and it print some different absolute path (probably where the server is installed)...
Please help me out anybody, what should I do?
Thanks a lot.