本人是个刚开始学习JAVA编程的菜鸟,写了如下的简单程序,却出错了,不知为什么?
class test{
public static void main(String args[]){
for(int i=1;i<=10;i++){
System.out.println("hello world"); 
}
}
}
上述程序本人保存为i:\test.java,然后在命令提示符下输入下列命令进行编译
javac i:\test.java
编译没有提示错误。
再输入下列命令运行程序,却出错了
java i:\test
错误提示是:Exception in thread "main" java.lang.NoclassDefFoundError:i:\test
上述错误是什么错误,怎样解决,请高手指教,谢谢了!!!