日期:2014-05-20  浏览次数:20693 次

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”选项的,就可以运行的,否则就是不能运行的。
------解决方案--------------------
属性 路径之类的看看 设置对了没有