【发布时间】:2013-11-10 20:58:54
【问题描述】:
在构建路径中遇到 JRE 系统库未绑定错误,尝试了以下链接中的所有建议,但没有成功。我有jdk 1.6.0_29,我也尝试安装其他版本但没有帮助。
JRE System Library [WebSphere v6.1 JRE] (unbound) Eclipse error: Unbound classpath container Java - Unbounded classpath container Websphere V6 JRE Struggling to update JRE dependencies within Maven and Eclipse Unbound classpath container in Eclipse unbound class path container error in eclipse? Java Web Project Build Error 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>
【问题讨论】:
-
我尝试从 Eclipse 之外的目录运行,但收到以下警告:“工作区定义了一个不包含有效 jre 的 VM”。但是我已经安装了必要的 jdk 并检查了版本
-
该错误表明您在 Eclipse 中定义了一个虚拟机配置,但该配置没有正确配置的 JRE 与之关联。首先查看您的 Java VM 是否配置正确,并确保它指向正确的二进制文件。
-
Yoni 的回答通过这个链接解决了我的问题 -- stackoverflow.com/questions/3542051/…
标签: java eclipse maven classpath buildpath