tags:

views:

24

answers:

3

Hi,

I am using

jar -xf <name of 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.

A: 

just work with it like the common archive (7z, zip)

RyuuGan
A: 

JARs are packed with ZIP. unzip -d [target-directory] [jar-file] will do the job.

Philipp Jardas
A: 

You can just do:

unzip -d /path/to/your/directory  my.jar

as if the jar file as a zip file.

codaddict