Top/Eclipse/エラー:Java compiler level does not match the version of the installed Java project facet

Eclipse/エラー:Java compiler level does not match the version of the installed Java project facet の変更点


//Eclipse/エラー/Java compiler level does not match the version of the installed Java project facet
*プロジェクトのJDKのバージョンをアップグレードする。
Eclipse JUNO上での開発時に遭遇しました。
今までJDK1.4で開発していたプロジェクトをJDK1.6にアップグレードすることになりました。
設定を変更し、必要なライブラリの入れ替えなどを行い、build.xmlを実行すると以下のエラーがMarkersのログに出ました。

 Java compiler level does not match the version of the installed Java project facet.

これは、Projectの設定にデフォルトのJDKバージョンが保存されていることが原因です。

+Projectを右クリックしてPropertiesを開きます。
+Project Facetsを開き、一覧の「Java」のバージョンを「1.4」から「1.6」に直します。
+OKを押します。

-(参考サイト)
http://kurusugawa.jp/2007/10/29/eclipe-wtp%E3%81%A7java-compiler-level%E3%81%8C%E5%90%88%E3%82%8F%E3%81%AA%E3%81%84%E3%81%A8%E6%80%92%E3%82%89%E3%82%8C%E3%82%8B/

ページ新規作成

新しいページはこちらから投稿できます。

TOP