File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes @Entity not resolved Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "@Entity not resolved " Watch "@Entity not resolved " New topic

@Entity not resolved

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
hi all
i am writing a sample EJB 3.0 application.

when i tried declaring @Entity, i am getting compiler error saying @Entity not resolved.

even i am not able to import the below package.
import javax.persistence.*;

But i checked that the jre 1.5 is in build path of eclipse editor.

Is there any other files required to build the application based on EJB 3.0

The version of jdk i am using is "jdk1.5.0_08"
[ September 07, 2006: Message edited by: Parameswaran Thangavel ]
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

jre 1.5 is the Java Runtime for J2SE. The jre is for runtime not development. You should also have the 5.0 JDK and the Java EE 5 SDK. So you still need the ejb3 jar files in your classpath.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: @Entity not resolved
It's not a secret anymore!