3

I am new to the eclipse environment. I clone my project from the repository(Hg) by New->Project->Mercurial->Clone existing project. Here my problem is "This compilation unit is not on the build path of a java project" message comes when I editing the coding. Auto completion not working. Kindly let me know how solve this problem...

Note: I searched in google as well as in stackoverflow. But still I am not clear in that.

4

2 に答える 2

7

Windows7のEclipseでもこの問題が発生しました。解決策は、[プロジェクトに移動]->右クリック->[プロパティ]->[プロジェクトファセット]->使用しているJDKバージョンのJavaバージョンを変更することです。プロジェクトのJDKバージョンがより高い場合(たとえば1.5)、プロジェクト設定がjdk 1.4の場合、機能しないことに注意してください。逆もまた同様です。

于 2013-02-06T05:32:59.903 に答える
-1

プロジェクトを右クリックし、プロパティを選択します。左側で Java Build Path を選択します。[ライブラリ] タブに移動し、JRE システム ライブラリを選択します。右側で、編集オプションをクリックします。代替 JRE ラジオ ボタンを選択します。インストールした JDK がドロップダウンに表示されているかどうかを確認し、それを選択します。これで問題が解決するはずです。

于 2012-05-24T06:12:43.817 に答える