Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic