Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes @Entity not resolved Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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: 17233
    
    1

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: @Entity not resolved
 
Similar Threads
How to call ENtity Bean from Message driven bean
entity only or entity bean?
FREE BETA: SCBCD 5.0 Beta Certification Exam
Hibernate vs EJB 3.0
Can EJB 3.0 be used with Jetty?