简体   繁体   中英

Start jar in cmd with spaces

i'm in windows 7, and i try to start this command in cmd

java -jar C:\\Dropbox\\Java\\Updater Test\\Updater.jar

The file exists, but i had this error:

Error: Unable to access jarfile C:\\Dropbox\\Java\\Updater

I also try to:

java -jar C:\\Dropbox\\Java\\Updater%20Test\\Updater.jar

But doesn't work

尝试

java -jar "C:\Dropbox\Java\Updater Test\Updater.jar"

您需要使用引号将路径传递,以便将整个路径视为单个命令行参数。

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