please help me with building duke tutorial
hi, i'm new to Java. I have installed sun appserver 9 PE on a windows xp machine. i ran the appserver and then i tried to buildbookstore1 tutorial but i received the following error log:
Buildfile: build.xml
-pre-init:
init:
default-ear:
build-common:
-pre-init:
init:
default-ear:
-pre-compile:
bpp-actual-compilation:
[echo] Compiling bookstore
[javac] Compiling 11 source files to E:\Documents\Studies\Laboratories\Java\
Java EE\javaeetutorial5\examples\web\bookstore\build\classes
[javac] E:\Documents\Studies\Laboratories\Java\Java EE\javaeetutorial5\examp
les\web\bookstore\src\com\sun\bookstore\database\Book.java:32: package javax.per
sistence does not exist
[javac] import javax.persistence.Entity;
[javac] ^
[javac] E:\Documents\Studies\Laboratories\Java\Java EE\javaeetutorial5\examp
les\web\bookstore\src\com\sun\bookstore\database\Book.java:33: package javax.per
sistence does not exist
[javac] import javax.persistence.Id;
[javac] ^
[javac] E:\Documents\Studies\Laboratories\Java\Java EE\javaeetutorial5\examp
les\web\bookstore\src\com\sun\bookstore\database\Book.java:34: package javax.per
sistence does not exist
[javac] import javax.persistence.Table;
[javac] ^
[javac] E:\Documents\Studies\Laboratories\Java\Java EE\javaeetutorial5\examp
les\web\bookstore\src\com\sun\bookstore\database\Book.java:37: cannot find symbo
l
[javac] symbol: class Entity
[javac] @Entity
[javac] ^
[javac] E:\Documents\Studies\Laboratories\Java\Java EE\javaeetutorial5\examp
les\web\bookstore\src\com\sun\bookstore\database\Book.java:38: cannot find symbo
l
[javac] symbol: class Table
[javac] @Table(name = "WEB_BOOKSTORE_BOOKS")
[javac] ^
[javac] E:\Documents\Studies\Laboratories\Java\Java EE\javaeetutorial5\examp
les\web\bookstore\src\com\sun\bookstore\database\Book.java:74: cannot find symbo
l
[javac] symbol : class Id
[javac] location: class com.sun.bookstore.database.Book
[javac]@Id
[javac]^
[javac] Note: E:\Documents\Studies\Laboratories\Java\Java EE\javaeetutorial5
\examples\web\bookstore\src\com\sun\bookstore\cart\ShoppingCart.java uses or ove
rrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 6 errors
[subant] Failure for target 'default' of: E:\Documents\Studies\Laboratories\J
ava\Java EE\javaeetutorial5\examples\web\bookstore\build.xml
[subant] The following error occurred while executing this line:
[subant] E:\Documents\Studies\Laboratories\Java\Java EE\javaeetutorial5\examp
les\bp-project\command-line-ant-tasks.xml:92: Compile failed; see the compiler e
rror output for details.
copy-common-jars:
BUILD FAILED
E:\Documents\Studies\Laboratories\Java\Java EE\javaeetutorial5\examples\web\book
store1\build.xml:36: Warning: Could not find file E:\Documents\Studies\Laborator
ies\Java\Java EE\javaeetutorial5\examples\web\bookstore\dist\bookstore.jar to co
py.
Could you please help me with that? i also started java DB to see if it helps but it didn't.

