首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

could not find the main class.Program will exit.异常

2011-12-24 
could not find the main class.Program will exit.错误我用的是jbuilder2005开发工具,我写了一个程序,编

could not find the main class.Program will exit.错误
我用的是jbuilder2005开发工具,我写了一个程序,编译能够通过,但是运行时报错‘could   not   find   the   main   class.Program   will   exit.’。请问如何解决???

[解决办法]
那么明显,没有main方法啊
[解决办法]
要真这么简单就不用问了
我也出现这个问题了
main方法是有的
但是还是不行
我也想知道问题所在
我用的是Eclipse
[解决办法]
中毒了吧
[解决办法]
Eclipse 中我从来没有出现过这种情况的,如果有 main 方法,右键弹出菜单的“Run As”菜单会有“Java Application”选项的,就可以运行的,否则就是不能运行的。
[解决办法]
属性 路径之类的看看 设置对了没有

热点排行