25.10. Java DB/Apache Derby

As of JDK 6, Sun Microsystems now bundles the open-source, pure Java database Java DB (the Sun branded version of Apache Derby) with the JDK. In Section 25.11, we use Java DB to demonstrate a new JDBC 4.0 feature and to demonstrate so called PreparedStatements. Before you can execute the application in the next section, you must set up the AddressBook database in Java DB. In Section 25.11, we use the embedded version of Java DB. There is also a network version that executes similarly to the MySQL DBMS introduced earlier in the chapter. For the purpose of the following steps, we assume you are running Microsoft Windows with Java installed in its default location.

1.
Java DB comes with several batch files to configure ...

Get Java™ How to Program, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.