Hi
I have a problem compiling bookstore1 sample in the j2ee tutorial. Below is the error message:
Compiling 11 source files to D:\Experiment\JEE\javaeetutorial5\examples\web\bookstore\build\classes
D:\Experiment\JEE\javaeetutorial5\examples\web\bookstore\src\com\sun\bookstore\database\Book.java:13: package javax.persistence does not exist
import javax.persistence.Entity;
D:\Experiment\JEE\javaeetutorial5\examples\web\bookstore\src\com\sun\bookstore\database\Book.java:14: package javax.persistence does not exist
import
javax.persistence.Id;
D:\Experiment\JEE\javaeetutorial5\examples\web\bookstore\src\com\sun\bookstore\database\Book.java:15: package javax.persistence does not exist
import javax.persistence.Table;
D:\Experiment\JEE\javaeetutorial5\examples\web\bookstore\src\com\sun\bookstore\database\Book.java:18: cannot find symbol
symbol: class Entity
@Entity
D:\Experiment\JEE\javaeetutorial5\examples\web\bookstore\src\com\sun\bookstore\database\Book.java:19: cannot find symbol
symbol: class Table
@Table(name = "WEB_BOOKSTORE_BOOKS")
D:\Experiment\JEE\javaeetutorial5\examples\web\bookstore\src\com\sun\bookstore\database\Book.java:55: cannot find symbol
symbol : class Id
location: class com.sun.bookstore.database.Book
@Id
6 errors
BUILD FAILED (total time: 3 seconds)
I have tried to add toplink library, and populate the database, but still fail to build successfully. Any help appreciated.
Cheers
Kris