在构建路径中出现 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 以匹配旧项目代码更好。
这与用户 3076252' 的回答类似,但您要选择的选项不同:
它应该能找到未绑定的 JRE,但这次它的名称中包含了所有数字(而不是未绑定),你可以选择它。搜索驱动器需要一段时间,但你可以随时停止,它会保存搜索结果(如果有的话)。