jar -cvfe BinaryConverter.jar Main *.class
Where BinaryConverter.jar is the name of the jar file and Main is the name of the class containing main(String[] args).
In addition to your code, you will submit a report for this assignment. The report should include screenshots and steps detailing the process of writing your code and building the executable JAR file including the commands that need to be invoked in the command line. This report will be followed to build and test your program.
Also, the report need not be essay-level writing. It is sufficient to include the screenshot then short commentary for each screenshot in a step-by-step manner.