1項目右鍵:java
2.. window->preferences->java->Compileride
3..window->preferences->java->Installed JREsblog
.it
三處的jdk保持一致,通常就能夠了class