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.
Created attachment 131633 [details] Project to use for reproduction. I noticed this before, but finally found away to reproduce it. This also happens on a java file in a Groovy project. 1. Import attached project into NetBeans and make sure "Compile on save" is disabled. 2. Run project and it should run ok showing fib: and duration. 3. Run cmd.exe and navigate to the project's dist folder and run the jar file (java -jar JavaApplication11) and it should run ok. 4. Edit JavaApplication11.java and remove the comment marks on line 19, 24 and 27. 5. Clean & Build project and it will fail because NetBeans can't delete the "dist" directory becaues Windows has a lock on it from cmd.exe. 6. move up one directory (cd ..) in cmd so as to unlock the "dist" directory. 7. Now Clean & Build the project. 8. Notice the "needs to be compiled" badge is showing for JavaApplication11.java, although it was compiled. Expected: The "needs to be compiled" badge goes away. Workaround: Restart NetBeans. This works in NetBeans 7.2.1. Regression. Product Version: NetBeans IDE 7.3 (Build 201302132200) Java: 1.7.0_13; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_13-b20 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) Bug is also in: Product Version: NetBeans IDE Dev (Build 201302192300) Java: 1.7.0_13; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_13-b20 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
*** This bug has been marked as a duplicate of bug 226091 ***