to generate *.jar package run this command line: => jar cmf manifest.txt app.jar *.class or: => jar cfve app.jar Main *.class to run a jar file: => java -jar app.jar or just compile and run the application: => javac Main.java => java Main