简体   繁体   中英

How to specify the directory of archive to be extracted using jar command?

I have

C:\Program Files\Java\jdk1.8.0_20\bin\jar.exe

D:\ounce\advanced\bank.zip

Currently, my command shell is at

D:\ounce\advanced>

When I use this command:

C:\Program Files\Java\jdk1.8.0_20\bin\jar xf D:\ounce\advanced\bank.zip

to extract bank.zip, I get "illegal option: F" The same thing happens when I replace D:\\ounce\\advanced\\bank.zip with just bank.zip

I'm trying to do it the hard way without using environment variables. How can I do this right?

Thank you for your help.

program files - has space in it

you need to put the entire path in double quotes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM