-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: javax.persistence.*
PostPosted: Sat May 03, 2008 7:34 pm 
Newbie

Joined: Sat May 03, 2008 7:26 pm
Posts: 2
I get the following error when I try to build ant
c:/ant build
error: javax.persistence.* does not exist

somebody suggested to put JPA in classpath in build.xml , but how to do that I do not know. Please explain in bit detail.

Thank you


Top
 Profile  
 
 Post subject: correct
PostPosted: Sun May 04, 2008 3:18 am 
Senior
Senior

Joined: Sun Jun 11, 2006 10:41 am
Posts: 164
You need the JPA spec as a minimum for compiling your code (you need to provide this on the compiler's classpath), but you also need some JPA implementation at runtime (this comes as a part of your EJB 3.0 complient app server).

One option is to find the needed JPA spec jar on your development-time app server, and add it to the classpath. Another option is to add the JPA spec jar to your application.

JPA website:
http://java.sun.com/javaee/technologies/persistence.jsp
EJB 3.0 spec (contains JPA spec):
http://java.sun.com/products/ejb/docs.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.