創建項目,報錯:Java compiler level does not match the version of the installed Java project facet.

創建好WEB項目後,在Problems窗口會看到這個錯誤。 如果看不到這個窗口,請選擇window–>Show View–>other. 然後點擊OK即可。 出現這個問題的主要原因是:jdk使用的是1.7版本,創建web項目的選擇J2EE 5或者6,版本不一致,這時候,在web項目上右鍵–>Properties–>Java Compiler. 這原來是1.6,修改成jdk版本,這選擇1.7,發現還
相關文章
相關標籤/搜索