Classpath directories with spaces

I get NoClassDefFoundError

when I use the command:

java -classpath C:\Program Files\netbeans-5.0\ide6\modules\ext;C:\Documents and Settings\Sebastian\My Documents\My Java Projects\AssesmentManager\test\sste DataFileTest

Is it possible to have spaces in the classpath directory?

I know it executes well in netbeans IDE.

[349 byte] By [aus_java_studenta] at [2007-10-3 3:10:55]
# 1
You could try swapping Program Files with Progra~1
nerak99a at 2007-7-14 21:01:44 > top of Java-index,Java Essentials,New To Java...
# 2
Use quotes:java -classpath "C:\Program Files\netbeans-5.0\ide6\modules\ext;C:\Documents and Settings\Sebastian\My Documents\My Java Projects\AssesmentManager\test\sste" DataFileTest
Herko_ter_Horsta at 2007-7-14 21:01:44 > top of Java-index,Java Essentials,New To Java...
# 3
Quotes is of course, a much more elegant way of doing it.
nerak99a at 2007-7-14 21:01:44 > top of Java-index,Java Essentials,New To Java...
# 4
Thanks guys.
aus_java_studenta at 2007-7-14 21:01:44 > top of Java-index,Java Essentials,New To Java...