开发者

How to extract a jar to a particular location?

开发者 https://www.devze.com 2023-01-19 05:52 出处:网络
I am using jar -xf <name of 开发者_StackOverflow社区the jar> -C <location where jar is to be extracted>

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)

0

精彩评论

暂无评论...
验证码 换一张
取 消