Java 由于以下错误,ant文件生成失败

Java 由于以下错误,ant文件生成失败,java,ant,build,Java,Ant,Build,当我尝试运行ant文件时,构建将失败,原因如下: [projectBuild] null DN Jaxb Beans:Multiple output locations are disabled, cannot associate entry: 'DN Jaxb Beans/src' with a specific output. [projectBuild] null DN Jaxb Beans:Unbound classpath container: 'JRE System Library

当我尝试运行ant文件时,构建将失败,原因如下:

[projectBuild] null DN Jaxb Beans:Multiple output locations are disabled, cannot associate entry: 'DN Jaxb Beans/src' with a specific output.
[projectBuild] null DN Jaxb Beans:Unbound classpath container: 'JRE System Library [J2SE-1.5]'.
[projectBuild] null DN Jaxb Beans:Unbound classpath container: 'org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER'.
[projectBuild] null DN Jaxb Beans:Multiple output locations are disabled, cannot associate entry: 'DN Jaxb Beans/src' with a specific output.
[projectBuild] null DN Jaxb Beans:The project was not built since its classpath is incomplete. Cannot find the class file for java.lang.Object. Fix the classpath then try rebuilding this project.
[projectBuild] 1 JAXBVersion.java:This compilation unit indirectly references the missing type java.lang.Object (typically some required class file is referencing a type outside the classpath)
[projectBuild] Errors were detected after building DN Jaxb Beans
[projectBuild] ProjectBuild: DN Jaxb Beans Exception=Errors were detected after building DN Jaxb Beans
[projectBuild] BUILD FAILED: file:C:/workspace.May21/DN Ant Scripts/buildDev.xml:149: 

ProjectBuild: DN Jaxb Beans Exception=Errors were detected after building DN Jaxb Beans
Total time: 19 minutes 4 seconds

您能解决这个问题吗?

以下错误是一个很好的指示:

Cannot find the class file for java.lang.Object

如果java找不到
java.lang.Object
,则java安装存在配置问题。消息
JRE系统库[J2SE-1.5]
看起来像是一个eclipse JRE配置名称,因此我假设您是通过eclipse运行此配置的。我将尝试在eclipse中删除并添加回执行环境配置。

我正在WebSphere Application Developer中运行。已配置Java1.4。您的项目似乎已配置为Java1.5。检查您的项目设置以查看它正在查找的java版本,检查您的工作区设置以查看您有哪些可用的java版本。我再次配置了首选项,并以正确的方式设置了所有选项。然后它正确地启动了。