We will now download a JAR file from the internet and use it in our project to create a JAR file for our project.
Open a web browser and search for download a junit.jar. This will take you to a link where you can download a JAR file. There are online repositories available where JAR files exist. One of the most reliable repositories can be found at http://www.java2s.com/Code/Jar/j/Downloadjunitjar.htm, where you can download any available JAR file. If you click on it, it should take you to the following page:
As seen in the preceding screenshot, you will find the junit.jar ...