Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区 » 实战错误讨论  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:初学者求助,我的第二个程序运行出错。 [Re:兔子Roger]
JiafanZhou



版主


发贴: 736
积分: 61
于 2006-09-21 06:28 user profilesend a private message to usersend email to JiafanZhousearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Your code is 100% right except for the most cases, the class contains the main method will be decalred as a public modifier whereas only one public class is allowed in every file.

Well ,The error is telling you that the error is:

Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method.

Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.

Delete the .class files and recompile programs to insure that the .class files are valid.

Kind regards,
Jiafan



When I was a kid I used to pray every night for a new bike. Then I realized that The Lord doesn't work that way, so I stole one and asked him to forgive me.

话题树型展开
人气 标题 作者 字数 发贴时间
15625 初学者求助,我的第二个程序运行出错。 兔子Roger 1272 2006-09-20 20:14
14207 Re:初学者求助,我的第二个程序运行出错。 qingsure 23 2006-09-20 21:00
13611 Re:初学者求助,我的第二个程序运行出错。 snow_lxj 28 2006-11-12 17:53
13463 Re:初学者求助,我的第二个程序运行出错。 bd0571 173 2006-11-13 12:47
14136 Re:初学者求助,我的第二个程序运行出错。 lxgsk 11 2006-11-16 09:48
14862 Re:初学者求助,我的第二个程序运行出错。 JiafanZhou 653 2006-09-21 06:28
14031 Re:初学者求助,我的第二个程序运行出错。 why 96 2006-09-21 09:20
14084 Re:初学者求助,我的第二个程序运行出错。 ken_chie 122 2006-09-22 09:40
14144 Re:初学者求助,我的第二个程序运行出错。 ken_chie 37 2006-09-22 09:45
13994 Re:初学者求助,我的第二个程序运行出错。 zxhzhong 24 2006-09-25 15:39
13938 Re:初学者求助,我的第二个程序运行出错。 xudeliang 5 2006-09-28 10:03
14291 Re:初学者求助,我的第二个程序运行出错。 xingchao 31 2006-10-14 13:41
13621 Re:初学者求助,我的第二个程序运行出错。 JavaandC 51 2006-10-17 15:20

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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