Function
Command
Creating a JAR file from individual files
jar cf jar-file input-file...
Creating a JAR file from a directory
jar cf jar-file dir-name
Creating an uncompressed JAR file
jar cf0 jar-file dir-name
Updating a JAR file
jar uf jar-file input-file...
Viewing the contents of a JAR file
jar tf jar-file
Extracting the contents of a JAR file
jar xf jar-file
Extracting specific files from a JAR file
jar xf jar-file archived-file...
Running an application packaged as an executable JAR file
java -jar app.jar
Reference : Explore the power of the JAR file format
No comments:
Post a Comment