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.

Leave a Reply

  

  

  

Blue Captcha Image
Refresh

*

October 2019
M T W T F S S
« Sep    
 123456
78910111213
14151617181920
21222324252627
28293031