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.
NetBeans 8.1 comes with a new JUnit, which no longer bundles Hamcrest, which is required for JUnit to work. So you have to add Hamcrest library to the project. The text that currently describes this situation in the "Resolve Project Problems" dialog is "JUnit 4.12 does not bundle hamcrest matchers library. Click the resolve button to automatically add hamcrest as your project's test dependency." This text should be updated to more fully describe the situation.
I just got this and found it completely understandable. What more would you want it to say?
I would word it this way: --- Netbeans 8.1 comes with a new version of JUnit (4.12) which requires the "hamcrest" matchers library. [This library was bundled with previous versions of JUnit.] or [This is a new library dependency for this version of JUnit.] Click the resolve button to automatically add hamcrest as your project's test dependency. Or, if this project does not use JUnit, you may manually remove the JUnit library from Project Properties -> Libraries -> Compile Tests. --- The reason I think this is necessary: I am a very experienced developer, yet I had to guess at what "hamcrest" was and what I needed to do about it. I guessed correctly, but less experienced developers might not not understand at all.
I ran into this again while running Synergy tests. Completely forgot about it, and it took time to figure it out. Bumping back up to P3 because of lost time.
I agree. This was one of several reasons I went back to NB 8.0.1.
Yeap, very hard to understand message. The suggestion made by mclaborn makes more sense to me than the one in Netbeans.
I would like to add that I just installed 8.2 after previously using 7.0.1 and was greeted with "Hamcrest binaries missing (in MyProject)"... and "JUnit 4.12 does not bundle hamcrest matchers library. Click the resolve button to automatically add hamcrest as your project's test dependency." As far as I know, I never used JUnit and I have no idea what hamcrest is (until now). I don't want to add something to my project.