1项目右键:java
2.. window->preferences->java->Compileride
3..window->preferences->java->Installed JREsblog
.it
三处的jdk保持一致,通常就能够了class