I'm reading this book, Java 6 21 days. I have just gotten to the part where you make a JavaDB database.
I'm using netbeans 6.9 - this I think is part of the problem
Here's the problem: This program http://workbench.cadenhead.org/book/...residents.java Throws this error
Error -- java.sql.SQLException: Table/View 'CONTACTS' already exists in Schema 'APP'.
I realize that its not a java compiler error but an error with the database's creation. I Googled for the error the best i could, and all i could find was this
atWhatever JPA provider you're using, I suspect that it is configured to generate and export the database objects corresponding to your mappings... and those already exist. Depending on your configuration, on the JPA provider, on the exact message (EclipseLink logs such messages as warning AFAIK), this might be just normal or a "configuration mistake". If you want more details, please tell us what provider you're using and show your persistence.xml. Update: As suspected, you are using EclipseLink and these message are "normal" (they are logged as warning if you look closely at the message IIRC)
java.sql.SQLException: Table/View 'SEQUENCE' already exists in Schema 'ADMIN'. - Stack Overflow
What do i have to configure, or change to get this example program working?