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

Posted java.matt

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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版本

致修改成样即可






以上是关于MyEclipse运行Java出错:could not find the main class:test.program will exit(导入项目)的主要内容,如果未能解决你的问题,请参考以下文章