posted 15 years ago
The "getAbsolutePath()" should have printed the entire path from the root. Are those exactly the files you expected it to find?
If so, then the "false" means that the JVM tried and failed to deleted the files. It could be a permissions issue, or you could be on Windows, where deleting an open file will fail. Since you said this is a log file directory, maybe you're trying to delete log files that are currently in use? You can't do that on Windows; you have to make sure the files are closed, first.