This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 214722

Summary: Too many times the 'Clean and build' fail.
Product: java Reporter: ami <ami>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED INCOMPLETE    
Severity: normal CC: mmirilovic
Priority: P1    
Version: 7.1.2   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description ami 2012-06-25 14:59:29 UTC
Product Version = NetBeans IDE 7.1.2 (Build 201204101705)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_23
Runtime = Java HotSpot(TM) Client VM 19.0-b09

Linux and Windows
Too many times the 'Clean and build' fail with message example:
Unable to delete file C:\code_sw\jtools\trunk\libs\jtools.globals\dist\jtools.globals.jar then
in the next try it complain about other file, after enough tries it's succeed.
Comment 1 Jan Lahoda 2012-06-25 15:54:34 UTC
Hm, I don't think I have ever seen this on Linux native filesystems. Sounds like someone is keeping the jar(s) open and so it cannot be deleted (on Windows). If you could investigate who is keeping the file open, that would be awesome. I am not a Windows expert, but found this on the topic:
http://serverfault.com/questions/1966/how-do-you-find-what-process-is-holding-a-file-open-in-windows

(Linux filesystems don't normally have this problem, as a file opened by one process can be deleted by another one.)

Thanks.
Comment 2 ami 2012-08-01 22:33:35 UTC
This problem is really annoying,
it is happened almost any time (Only on Windows).
Is it was fixed in 7.2?