当前位置: 技术问答>java相关
上次提问忘了看答复,现在没了,只能再问一遍,不好意思
来源: 互联网 发布时间:2015-03-06
本文导语: public class Greeting { public void main(String[] args) { System.out.println("hi"); } } 编译通过 可是执行却 java.lang.NoClassDefFoundError: Greeting Exception in thread "main" Exit code: 1 There were errors 怎么解决 谢谢...
public class Greeting {
public void main(String[] args) {
System.out.println("hi");
}
}
编译通过
可是执行却
java.lang.NoClassDefFoundError: Greeting
Exception in thread "main" Exit code: 1
There were errors
怎么解决
谢谢
public void main(String[] args) {
System.out.println("hi");
}
}
编译通过
可是执行却
java.lang.NoClassDefFoundError: Greeting
Exception in thread "main" Exit code: 1
There were errors
怎么解决
谢谢
|
public static void main()
是不是少了一个static 啊,呵呵
是不是少了一个static 啊,呵呵