This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
 
subject: Netbeans holds on to jar-File - can't delete
 
Similar Threads
Deploying EJB in Websphere via Ant
deleting directories in ant
Netbeans 4.1: How do I set up multiple "run" tasks in 1 project?
One observation
jar file classpath