Topic: 一个新手的问题,请各位高手指教! (NoClassDefFoundError)

  Print this page

1.一个新手的问题,请各位高手指教! (NoClassDefFoundError) Copy to clipboard
Posted by: tosy0070
Posted on: 2004-11-08 11:31

{ 提问前请搜寻一下旧帖子
请尽量用准确的文字描述作为标题

那是 NoClassDefFoundError - 谨慎点吧,尽量用剪贴的方法。 }



我用JCREATOR写了个简单的程序:
public class A{
public static void main(String args[])
{
System.out.println("dddddddddd");
}
}
编译的结果显示:exception in thread"main"java.lang.NoclassDefound Error:A
把 public class A改成class A就能正常编译,请问是什么回事?在这里先谢谢了

2.Re:一个新手的问题,请各位高手指教! [Re: tosy0070] Copy to clipboard
Posted by: wddodo
Posted on: 2004-11-08 16:50

你的文件名是什么?

3.Re:一个新手的问题,请各位高手指教! [Re: tosy0070] Copy to clipboard
Posted by: wuyongjin
Posted on: 2004-11-08 17:27

当类的前面加public时,文件名要和类名相同
看你的文件名是不是A,如果时A就可以 了

4.Re:一个新手的问题,请各位高手指教! [Re: tosy0070] Copy to clipboard
Posted by: tosy0070
Posted on: 2004-11-08 19:31

问题解决了,谢谢各位的帮忙!


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923