The following instructions apply only to NetBeans versions 7.x and 8.0. In the version 8.1 the JUnit 4 libraries are again bundled with the IDE.
Do I need to install the JUnit plugin?
In NetBeans IDE 7.0, the JUnit libraries were moved from the standard distribution of the IDE to the Update Center. To run JUnit tests in the IDE you will need to install the JUnit plugin that is available from the NetBeans Update Center. You only need to install the plugin once.
You can install the JUnit plugin in the following ways.
- Using the Install JUnit dialog the first time that you launch the IDE
- Choosing Tools > Plugins from the main menu and installing the JUnit plugin from the list of available plugins
If the JUnit plugin is not installed and you create a project from a template or open a project that references JUnit libraries, the project will be badged with a warning. You can choose Resolve Reference Problems from the project's popup menu in the Projects window.