在构建路径中出现 JRE 系统库未绑定错误

2024-03-29

在构建路径中出现 JRE 系统库未绑定错误,尝试了以下链接中的所有建议,但不起作用。我有jdk 1.6.0_29,我也尝试安装其他版本但没有帮助。

JRE 系统库 [WebSphere v6.1 JRE](未绑定) https://stackoverflow.com/questions/19144876/jre-system-library-websphere-v6-1-jre-unbound Eclipse 错误:未绑定类路径容器 https://stackoverflow.com/questions/16001130/eclipse-error-unbound-classpath-container Java - 无界类路径容器 Websphere V6 JRE https://stackoverflow.com/questions/9826263/java-unbounded-classpath-container-websphere-v6-jre 努力更新 Maven 和 Eclipse 中的 JRE 依赖项 https://stackoverflow.com/questions/16037414/struggling-to-update-jre-dependencies-within-maven-and-eclipse?rq=1 Eclipse 中未绑定的类路径容器 https://stackoverflow.com/questions/2083461/unbound-classpath-container-in-eclipse eclipse 中未绑定类路径容器错误? https://stackoverflow.com/questions/6798281/unbound-class-path-container-error-in-eclipse?rq=1 Java Web 项目构建错误 https://stackoverflow.com/questions/8232424/java-web-project-build-error eclipse 中未绑定类路径容器错误? 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>

另一种选择是:

  • 项目 > 属性 > Java 构建路径
  • 选择库选项卡
  • 选择有问题的JRE条目
  • 单击编辑按钮
  • 选择备用 JRE
  • 单击完成按钮

将项目指向已安装的 JRE 可能比重命名 JRE 以匹配旧项目代码更好。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在构建路径中出现 JRE 系统库未绑定错误 的相关文章

随机推荐