[jcifs] Re: Tell me please!

Caldarale, Charles R Chuck.Caldarale at UNISYS.com
Tue Aug 3 22:11:18 GMT 2004


> From: haivmk [haivmk2007 at yahoo.com]
> Subject: [jcifs] Re: Tell me please!
> 
> java -classpath c:\Program Files\Java\jcifs-0.9.5.jar Get

As previously suggested, you can enclose the path in quotes to avoid having the argument scanner break the classpath target off between "Program" and "Files".  In general, though, you should avoid paths with spaces in them in a Java environment - it's too easy to run into the situation you encountered.  For example, if a quoted argument with spaces in it is passed on as an argument to another program, it's quite likely the quotes won't be generated, resulting in errors in the 2nd program.

 - Chuck



More information about the jcifs mailing list