Please download the current JUnit libaries ( “junit-4.11.jar” and “hamcrest-core-1.3.jar” ) from Junit.org / Junit.org. Store it in the ”<jdk-dir>/lib” directory of your Java SDK.

With Eclipse, create a Java project.

In Eclipse, right-click with the mouse on the project file to open the property window for the project. At the menu item “Java Build Path”, click on the button “Add External JARs” and add the JUnit libary to the project. Else you get the error message “The import org.junit cannot be resolved” by Eclipse, in the text editor.