This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi all , I am using notepad to create my .java files so that I get through practice . I compile using the cmd prompt . the server I use is glassfish . The example I am trying out are from the Enterprise JavaBeans 3.0 5th edition by O'Reilly. the source code is as below
I tried to compile with javac -d . Cabin.java
the Errors I got were Cabin.java:3: package javax.persistence does not exist import javax.persistence.*; ^ Cabin.java:5: cannot find symbol symbol: class Entity @Entity ^ Cabin.java:6: cannot find symbol symbol: class Table @Table(name="CABIN") ^ Cabin.java:15: cannot find symbol symbol : class Id location: class com.titan.domain.Cabin @Id ^ Cabin.java:16: cannot find symbol symbol : class Column location: class com.titan.domain.Cabin @Column(name="ID") ^ Cabin.java:20: cannot find symbol symbol : class Column location: class com.titan.domain.Cabin @Column(name="NAME") ^ 6 errors
Please could some one guide m as to what i should do . I do not want to use an IDE like netbeans / Eclipse as I want to practice what goes where .
Thanks a million Dustin I have done so now the client compiles but the database is not available so it errors out can you pls tell me how to set up the persistence.xml so that it looks at my SQL server database . also how do I configure the datasource . Many thanks
Joined: Nov 14, 2006
Couldn't tell you that one, never actually done it myself!