This should certainly work. What is the error message?
Do you have the persistence.jar in your class path?
Are there any conflicts with other imports, for example importing a
class called Persistence from another package?
Craig
On Sep 27, 2007, at 7:43 PM, Kahlil Muhammad wrote:
> Hi,
>
> how to import glassfish-persistence .jar on my program?
>
> because when I add "import javax.persistence.*;"
> it couldn't work properly.
>
> Thanks..
> --
> -------------------------------------------------
> | Regards, |
> | Kahlil |
> | http://kahlilstt.blogsome.com |
> -------------------------------------------------
Craig Russell
Architect, Sun Java Enterprise System
http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell_at_sun.com
P.S. A good JDO? O, Gasp!
- application/pkcs7-signature attachment: smime.p7s