1. create manifest file - the name of the file should end with do .mf sufix
Manifest-Version: 1.0
Main-Class: hello
2. jar cmf manifest.mf hello.jar hello.class
3. to view the content of the JAR type:
jar tf jar_file.jar jar_file.class
4. to execute app:
java -jar jar_file.jar
Brak komentarzy:
Prześlij komentarz