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

could not find the main class异常,等待!

2012-02-03 
could not find the main class错误,等待高手指点!!!!!!我的项目下的一个文件ArrayApp.java,一开始在默认

could not find the main class错误,等待高手指点!!!!!!
我的项目下的一个文件ArrayApp.java,一开始在默认包下
可以运行,我把包改成了java.chapter.arrayes后
eclipse报错。
错误如下:
对话框
标题栏:java virtual machine launcher
内容:could not find the main class:
java.chapter.arrayes.ArrayApp. Program will exit.
请各位大侠帮忙!!!!!

[解决办法]
删除eclipse中文件所在的项目。
重新新建项目,file-new -project
在new a java project面板中,点击next按钮,
在source面板中,在allow output folders for source folders前勾选方框。
点击finish按钮。
已经成功。希望好和各位大侠分享!!!!!!!!!

热点排行