| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 528 人关注过本帖
标题:请大家帮助!谢谢
只看楼主 加入收藏
china9415
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2005-9-28
收藏
 问题点数:0 回复次数:4 
请大家帮助!谢谢
   Exception in thread "main" java.lang.NoClassDefFoundError:Ellsworth 是怎么回事(Ellsworth是类名和文件名)   在运行Class时遇到了这个问题,请大家帮我解决一下,谢谢
 原程序:
public class Ellsworth {
    public static void main(String[] arguments) {
       String line1 = "The advancement of the arts, from year\n";
       String line2 = "to year, taxes our credulity, and seems\n";
       String line3 = "to presage the arrival of that period\n";
       String line4 = "when human improvement must end.";
       String quote = line1 + line2 + line3 + line4;
       String speaker = "Henry Ellsworth";
       String title = "U.S. Commissioner of Patents";
       String from = "1843 Annual Report of the Patent Office";
       System.out.println('\u0022' + quote + '\u0022');
       System.out.println("\t" + speaker);
       System.out.println("\t" + title);
       System.out.println("\t" + from);
    }
}
搜索更多相关主题的帖子: thread public period 
2005-10-02 22:11
kai
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:52
帖 子:3450
专家分:59
注 册:2004-4-25
收藏
得分:0 
你的问题需要看下面这段文字: ErrorExplanation Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldAppIf you receive this error, java cannot find your bytecode file,HelloWorldApp.class.One of the places java tries to find your bytecode file isyour current directory. So, if your bytecode file is in C:\java,you should change your current directory to that. To change your directory,type the following command at the prompt and press Enter:
cd c:\java
The prompt should change to C:\java>. If you enter dirat the prompt, you should see your .java and .class files.Now enter java HelloWorldApp again.If you still have problems, you might have to change your CLASSPATHvariable. To see if this is necessary, try "clobbering" the classpath withthe following command:
set CLASSPATH=
Now enter java HelloWorldApp again. If the program works now,you'll have to change your CLASSPATH variable. For more information, consultthe section 5. Update the PATH variable in the installation instructions.

自由,民主,平等,博爱,进步.
中华民国,我的祖国,中华民国万岁!中华民国加油!
本人自愿加入中国国民党,为人的自由性,独立性和平等性而奋斗!
2005-10-03 04:47
zishan
Rank: 1
等 级:新手上路
帖 子:37
专家分:0
注 册:2005-8-6
收藏
得分:0 
我用jbuilder运行了一下你的程序,没有错误啊

2005-10-04 10:43
lcm
Rank: 4
等 级:贵宾
威 望:13
帖 子:140
专家分:0
注 册:2005-2-4
收藏
得分:0 
我也运行了一下这个程序,,,的确没错阿

从 小 事 做 起,脚 踏 实 地 ~
2005-10-04 12:54
250697812
Rank: 1
等 级:新手上路
帖 子:112
专家分:0
注 册:2005-10-5
收藏
得分:0 
就是啊

2005-10-05 19:38
快速回复:请大家帮助!谢谢
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017825 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved