ビルドパスにJREシステムライブラリ未結合エラーが発生し、以下のリンクからすべての提案を試しましたが、うまくいきません。jdk 1.6.0_29を使用しており、他のバージョンもインストールしてみましたが、うまくいきません。
https://stackoverflow.com/questions/19144876/jre-system-library-websphere-v6-1-jre-unbound https://stackoverflow.com/questions/16001130/eclipse-error-unbound-classpath-container https://stackoverflow.com/questions/9826263/java-unbounded-classpath-container-websphere-v6-jre https://stackoverflow.com/questions/16037414/struggling-to-update-jre-dependencies-within-maven-and-eclipse?rq=1 https://stackoverflow.com/questions/2083461/unbound-classpath-container-in-eclipse https://stackoverflow.com/questions/6798281/unbound-class-path-container-error-in-eclipse?rq=1 https://stackoverflow.com/questions/8232424/java-web-project-build-error https://stackoverflow.com/questions/6798281/unbound-class-path-container-error-in-eclipse
maven コンパイラのバージョンはこんな感じです:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>${project.build.sourceEncoding}</encoding>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
また、別の選択肢もあります:
古いプロジェクトのコードに合わせてJREの名前を変更するよりも、インストールされているJREをプロジェクトに指定する方が良い選択かもしれません。
これはuser3076252'さんの答えと同じですが、違う選択肢を選ぶことになります:
検索すると、結合されていないJREが見つかりますが、今回は結合されていないのではなく、名前に数字が含まれているので、それを選択することができます。ドライブの検索にはしばらく時間がかかりますが、いつでも停止することができ、結果があれば保存されます。
次にプロジェクトに移動します。
Right click on project---> Build Path-->Configure build path
現在、4つのタブがありますソース、プロジェクト、ライブラリ、順序とエクスポート。
行く。
Libraries tab --> Click on Add Library (shown at the right side) -->
select JRE System Library --> Next-->click Alternate JRE --> select
Installed JRE--> Finish --> Apply--> OK.
私にとって効果的な解決策は次のとおりです。
1。 プロジェクトを選択します。 2。 プロジェクトメニューを選択します。 3。 プロパティサブメニューを選択します。 4。 [プロジェクト]のプロパティ]ウィンドウで、[Javaビルドパス]タブを選択します。 5。 [ライブラリ]タブを選択します。 6。 面倒なJREエントリを選択します。 7。 編集ボタンをクリックします。 8。 JREエントリを選択します。 9。 終了ボタンをクリックします。