2 Minutes To Code (β Version)

'jar' command - 2 minute tutorial

How to package a given folder

If you need to add to the jar file the contents of a given folder, you can use the option -C (capital alphabet C).

For example, the command jar -cf app.jar -C bin . will go to the bin folder, and add all of its contents to the jar file app.jar.