I got a problem with Netbeans 5.0 (Windows XP Pro, Java SDK 1.4.2_10) where I can't delete files. I have an Ant target which copies my library jars to WEB-INF/lib. Another target removes that directory. Copying works, but deleting *sometimes* fails. In this case, I can't delete the files, neither manually nor via Ant (error message: "Unable to delete file xyz.jar"). Only after shutting down Netbeans is it possible to delete the files. I've come across people with the same problems who stated that Netbeans' integrated Ant was holding on to the files. However, I switched to a standalone Ant installation and still have the same problem. Any ideas? Thanks in advance, Dennis ---
Thanks Masoud, this is what I had in mind at first. However, I now use an external server and even when it is stopped the problem still occurs. I disabled Netbeans' internal Tomcat an the internal Ant. I checked all running processes, but it's the IDE process I have to stop in order to be able to delete the files.