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版本

致修改成样即可

原文地址:https://www.cnblogs.com/zhongchang/p/6896764.html