Eclipse: How to Add JUnit to Build Path
When you download and place a .java JUnit file into your project’s source folder, Eclipse doesn’t automatically add JUnit to the project’s build path. In order to add the library to the build path, follow these steps.
- Right click on your Project folder in the Package Explorer
- Click** Build Path -> Configure Build Path…**
- Click Add Library
- Select JUnit then click Next
- Choose your JUnit settings, then hit Finish