Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to delete file xx.jar

Status
Not open for further replies.

Quigrim

Programmer
Feb 13, 2004
2
0
0
ZA
I am unable to get ant to delete or rename any jar file.
I keep getting "Unable to delete file...."
As a test, I put a jar file in a folder, and made a single ant target that must delete that file, but it can't.
Why? I'm not referencing that jar anyware else.
It's driving me nuts.
Pleas help if you can.

Thanx much.
 
Probably a application is using that jar file. e.g. the IDE, J2EE container, etc...
 
I was getting the same error and found it to be a fork="true". So Ant was splitting off and using a different JVM and that is what was holding on to the file.
 
Okay, I lied.

The problem I had was not the fork but duplicate="preserver"
sorry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top