how to handle space between C:\Document and Setting\
Kee Kee moon
Ranch Hand
Joined: Dec 11, 2009
Posts: 110
posted
0
No, it is not just a windows command. I pass the argument into eclipse IDE window and I do use double quote. When the argument comes to the java program,
I still get errors. Apparently, the space cause the problem.
Thanks a lot.
Hi,
Please help.
I pass the argument C:\Document and Setting\...... I expect my java program to execute jar tf C:\Document and Setting\xxx\xxx\xxx.jar However, there are spaces between C:\Document and Setting\.... and it fails to get the results.
This is a question about the Windows command line, not about Java. And in that shell, if you want a string which contains spaces to be treated as a single unit, you surround it by "quotes".