1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/jar.md

21 lines
469 B
Markdown
Raw Normal View History

# jar
> Java applications/libraries packager.
2019-06-05 08:55:22 +01:00
> More information: <https://docs.oracle.com/javase/tutorial/deployment/jar/basicsindex.html>.
2020-02-05 02:26:35 +05:30
- Recursively archive all files in the current directory into a .jar file:
`jar cf {{file.jar}} *`
- Unzip .jar/.war file to the current directory:
`jar -xvf {{file.jar}}`
- List a .jar/.war file content:
`jar tf {{path/to/file.jar}}`
- List a .jar/.war file content with verbose output:
`jar tvf {{path/to/file.jar}}`