users@glassfish.java.net

J2ee tutorial problem - javax.persistence

From: <glassfish_at_javadesktop.org>
Date: Sun, 02 Aug 2009 03:39:18 PDT

Hi.

I'am a newbie on this technology. And I've tried to learn it with using of the official tutorial. But suddenly I've got a problem here:

http://java.sun.com/javaee/6/docs/tutorial/doc/bnaff.html

I was trying to build a Duke Bookstore example when got an error:

/mypath/Book.java:13: package javax.persistence does not exist
import javax.persistence.*;

So, first of all I've tried to look for a problems like i've got in the internet. I found that post:

http://forums.sun.com/thread.jspa?threadID=5148068

Than I tried to download the java persistence jar from that URL:

https://glassfish.dev.java.net/downloads/persistence/JavaPersistence.html

But unfortunately there is no version for GlassFish 3, I've download the one for GF 2, and placed it to:

/glassfish_home/lib

But i've got no effect :(

So, please could someone help me with that problem?
[Message sent by forum member 'dekoo' (dekoo)]

http://forums.java.net/jive/thread.jspa?messageID=358503