Eclipse:项目未构建,因为它的构建路径不完整

时间:2011-11-19 09:08:26

标签: eclipse

我正在使用Eclipse IDE。 当我尝试构建应用程序时,在问题视图

下给我这个错误

描述

The project was not built since its build path is incomplete. Cannot find the class file for javax.ejb.EJBObject. Fix the build path then try building this project 

输入

Java Problem
The type javax.ejb.EJBObject cannot be resolved. It is indirectly referenced from required .class files

4 个答案:

答案 0 :(得分:3)

听起来你有一个简单的Java项目,而不是一个Web项目。您缺少为项目提供EjbObject的服务器运行时。

尝试通过右键单击“转换为”,“分面项目”来转换项目,并为您的用例选择适当的Java EE配置,或者创建具有Java EE特性的新项目并在那里复制您的代码。

答案 1 :(得分:0)

包含weblogic你必须添加服务器运行时POM依赖 - wlthint3client:

<dependency>
        <groupId>com.oracle.weblogic</groupId>
        <artifactId>wlthint3client</artifactId>
        <version>10.3.5</version>
    </dependency>

答案 2 :(得分:0)

   I went through same error and i found solution.You can import external jar file JAVAX.ejb.jar and configure it in your project.
  

http://www.java2s.com/Code/Jar/j/Downloadjavaxejbjar.htm

答案 3 :(得分:0)

我遇到了同样的问题。

我缺少在项目方面选择服务器。在这之后,它解决了。

相关问题