Reputation: 315
Netbeans fails to build because .jar file from the previous build cannot be deleted. I am unable to delete the file manually or change/view its owners either even with Administrative Privileges. Is netbeans locking these files?
Upvotes: 1
Views: 2397
Reputation: 50
I think I just had this problem. Netbeans isn't the real issue here. The problem is that Java SE is getting stuck for some odd reason. Windows has this problem with apps hanging in the background in general but it also could be the program not exiting correctly due to code.
Here's how I fixed it: 1) Closed NetBeans (may not actually be necessary though) 2) Opened task manager 3) Manually ended Netbeans processes if it's still hanging (again, may not be necessary) 4) Look for any process with "Java SE" in the name and end that process 5) Try to build again.
Worked for me.
Upvotes: 1