File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans holds on to jar-File - can't delete Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans holds on to jar-File - can Watch "Netbeans holds on to jar-File - can New topic
Author

Netbeans holds on to jar-File - can't delete

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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
---
Masoud Kalali
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

It is the application server? that do not allows your IDe to delete those files.
undeploy the application and test whether you can delete those files or not.


Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Netbeans holds on to jar-File - can't delete