How Do You Create a .jar File for Your Java Program?

Problem scenario
You want to run a Java program via a .jar file. You want to invoke it like this java -jar nameOf.jar

What do you do?

Solution
1. Install Maven. If you need assistance, see this posting.
2. Follow these directions.

Leave a comment

Your email address will not be published. Required fields are marked *