How to extract a jar to a particular location?
I am using
jar -xf <name of 开发者_StackOverflow社区the jar> -C <location where jar is to be extracted>
But i am getting issues with the syntax.
Please let me know where i am wrong or site some example.
Thanks.
You can just do:
unzip -d /path/to/your/directory my.jar
as if the jar
file as a zip
file.
JARs are packed with ZIP. unzip -d [target-directory] [jar-file]
will do the job.
just work with it like the common archive (7z, zip)
精彩评论