exception in thread “main”java.lang.noclassdeffounderror:hello noclassdeffounderror = no class define found error 没有找到你这个hello类 看看你运行java hello的目录里面有没有hello.class这个类
public class Hello{ public static void main(String args[]){ System.out.println("Hello World!"); } }
有Hello.class这个类的啊。 而且大小写也是对的。就不知道哪儿错了
少了一个变量 public stactic void main(String[] agrs)
sorry 刚才写错了一个地方 public static void main(String[] agrs)这样再试下
public static void main(String args[]) public static void main(String[] args) public static void main(String a[]) public static void main(String[] a) public static void main(String[] cmdline) ... 以上都可以
楼主【yangchunhuo】截止到2008-06-27 11:44:35的历史汇总数据(不包括此帖):
发帖数:2 发帖分:40
结贴数:0 结贴分:0
未结数:2 未结分:40
结贴率:0.00 % 结分率:0.00 %
如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
noclassdeffounderror = no class define found error
没有找到你这个hello类
看看你运行java hello的目录里面有没有hello.class这个类
public static void main(String args[]){
System.out.println("Hello World!");
}
}
而且大小写也是对的。就不知道哪儿错了
少了一个变量
public stactic void main(String[] agrs)
刚才写错了一个地方
public static void main(String[] agrs)这样再试下
public static void main(String args[])
public static void main(String[] args)
public static void main(String a[])
public static void main(String[] a)
public static void main(String[] cmdline)
...
以上都可以