jUnit comes with Eclipse by-default. When user download eclipse bundle junit is already in it.
If you want to control the used JUnit library explicitly, download JUnit4.x.jar from the JUnit website at http://www.junit.org/ . The download contains the “junit-4.*.jar” which is the JUnit library. Add this library to your Java project and add it to the classpath.
Lets see do we really have jUnit in our Eclipse?
- Go to eclipse
- Go to file menu > New > Other
- Open this other
- Now search junit in this
- if it have jUnit This means we have junit installed