在java编程中还有classpath的概念,你在环境变量中设置一个命为classpath的变量,值为.; 是点分号。在启动dos 窗口运行之。