1

I know how to simply unzip a zip file to destination folder, just type the following command line in terminal:

unzip file.zip -d /folder/destination

Obviously -d option points out the destination folder, but I doesn't work for jar command line. Command line 'jar -vxf file.war' will extract file.war to the current folder, but command line 'jar -vxf file.war -d /folder/destination' does nothing, which means there is nothing generated under folder destination.

Is it possible to set the destination folder for jar command line.

1 Answer 1

0

Jar file is zip file. You can extract it with zip.

1
  • I tried and it solved my problem. Thanks for inspiring me.
    – Brady Zhu
    Jul 12, 2013 at 8:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .