看到这篇文章。
您可以将完整的类路径包含在双qoutes中
java -classpath "C:/documents and Settings/user/project/lib/axis.jar; C:/documents and Settings/user/project/lib/axis-ant.jar;" TestClient
或类路径中的每个jar
java -classpath "C:/documents and Settings/user/project/lib/axis.jar"; "C:/documents and Settings/user/project/lib/axis-ant.jar;" TestClient
在你的情况是这样的:
for JAR_FILE in `ls *.jar`do CLASSPATH="$DIRECTORY_TO_LOOK_FOR_JARS/$JAR_FILE":$CLASSPATHdone
很难看到,但是我移动了结尾的双qoute。



