Hello there, I have written a test application that reads a file name from a database, creates a new File reference with the name read (e.g. File file = new File(rs.getString("filename"); ) and then tries to delete it. The problem is that every time I am using the file.delete() method always returns false and cannot delete the file. I am sure that the file exists because when I am doing file.getAbsolutePath() it returns the correct path name. I have tried to catch any exception while trying to delete the file but with no luck. I have checked the folder and it is not read-only. I have edited the tomcat.policy file and set all permisions to my webapps folder to java.io.FilePermission "read, write, delete" but this does not seem to solve the problem. I am really stuck and I would really appreciate any help I could get. I have to tell you here that I am not running any SecurityManager.
I am using JDK1.4, with Tomcat 3.2.3 under Windows 2000. Thank you for any help Panos __________________________________________ "It can only be attributed to human error" 2001 A Space Odyssey =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com