MyEclipse运行Java出错:could not find the main class:test.program will exit(导入项目)

自己新建的项目运行没有任何问题。
但是我导入的很早以前别人写的项目,然后run就会弹框could not find the main class:test.program will exit

 

请确认JAVA编译器和JRE版本一致
右键点击项目--->>>preference-->>>JAVA compiler  查看编译器版本
右键点击项目--->>>build path--->>>Configure build path--->>>Libraries-->>JRE system library  查看JRE版本

致修改成样即可

posted @ 2017-05-23 23:21  java.matt  阅读(466)  评论(0编辑  收藏  举报