wood burning stoves*
The moose likes Java in General and the fly likes  the argument C:\Document and Setting\ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

the argument C:\Document and Setting\

Kee Kee moon
Ranch Hand

Joined: Dec 11, 2009
Posts: 147
I am very sorry, I reopen the new thread here.


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.

How to resolve the issue?
Thanks in advance.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

Please do not post the same question more than once. Please continue any discussion in the original topic.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: the argument C:\Document and Setting\
 
Similar Threads
how to handle space between C:\Document and Setting\
classpath - differences between java command line argument and environment variable
Running a Java Program from Command Prompt
How to set virtual arguments in servlet
to set environment var. with java program