Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any solution for this annoying error?

I am using NetBeans 7.0 and Glassfish 3.1 with Spring, version 3.0.2 and often I receive errors like this one:

"someProjectName\nbproject\build-impl.xml:1060: Unable to delete file SomeProjectname\build\web\WEB-INF\lib\antlr-2.7.6.jar"

Anyone have any ideas what could be the cause for this?

like image 506
Amit Avatar asked Jun 10 '11 16:06

Amit


2 Answers

It is a not a bug, It may happen due to a number of reasons:

  1. the jar is still executing.(in memory)
  2. Some page is open which is using the jar.
  3. The explorer window containing the folder which contains the jar is open.

There may be other reasons too...but I solved the problem on more than one occasions by eliminating the above three conditions.

See if it works for u.

like image 144
knurdy Avatar answered Sep 28 '22 16:09

knurdy


On top of what of knurdy's suggested... You might find Unlocker a helpful tool in such problem. Only if you are working on Microsoft Windows platform, which I guess you do.

like image 20
Grzegorz Oledzki Avatar answered Sep 28 '22 15:09

Grzegorz Oledzki