Revathi
Revathi

Reputation: 1203

Eclipse :The project was not built since its build path is incomplete

I am using Eclipse IDE . When i tried to build the Applicaion , its giving me this error under Problems view

Description

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 

Type

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

Upvotes: 5

Views: 39801

Answers (5)

Lisen Saka
Lisen Saka

Reputation: 56

In my case the problem was with the configuration of the libraries, so basically eclipse was trying to use at Properties -> Libraries the JRE that comes embedded with Eclipse, so I just changed the path of JRE to point on my downloaded JRE and the error was vanished

Upvotes: 0

user2520736
user2520736

Reputation: 1

I was getting the same problem.

I was missing to select the server in the project facet. After doing that, it solved.

Upvotes: 0

Manish Bhadani
Manish Bhadani

Reputation: 437

   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

Upvotes: 0

pingu
pingu

Reputation: 695

Incase of weblogic you have to add server runtime POM dependency - wlthint3client :

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

Upvotes: 0

Jonathan Schneider
Jonathan Schneider

Reputation: 27757

Sounds like you have a simple Java project and not an web project. You are missing a Server Runtime that provides the EjbObject to your project.

Either try converting the project by right-clicking, "Convert To", "Faceted Project", and select the appropriate Java EE configurations for your use case or create a new project with a Java EE nature and copy your code there.

Upvotes: 3

Related Questions