1. 程式人生 > >MyEclipse運行Java出錯:could not find the main class:test.program will exit(導入項目)

MyEclipse運行Java出錯:could not find the main class:test.program will exit(導入項目)

沒有 fin run lib could not sys program pil 編譯器

自己新建的項目運行沒有任何問題。
但是我導入的很早以前別人寫的項目,然後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(導入項目)