java to jar

Shell
# cd into the directory that contains your project
jar cvfe <output jar filename>.jar <main class location> *
Source

Also in Shell: