当前位置: 代码迷 >> Eclipse >> could not find the main class异常,等待!
  详细解决方案

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

热度:9   发布时间:2016-04-23 13:54:12.0
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按钮。
已经成功。希望好和各位大侠分享!!!!!!!!!
  相关解决方案