aspose file tools*
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
Author

@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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @Entity not resolved