Create Java JAR file with execution entry point (main)

$ jar -cfe ContactListTestDrive.jar ContactListTestDrive ContactListTestDrive.class ContactList.class Contact.class <enter>

where:
JAR file = ContactListTestDrive.jar
Entry Point class = ContactListTestDrive
Entry Point class = ContactListTestDrive.class (This is the class with the main() function)
ContactList.class and Contact.class are the other classes to add to the JAR file.

Normally this is automatically done when you use an IDE like Eclipse or NetBeans.