項目右鍵->Properties->Java Compiler 選擇相應的版本java
項目右鍵->Properties->Project Facets -> Java 選擇相應的版本eclipse
Window -> Preferences->Java -> Compiler 選擇相應的版本ip