29.3.1 Creating the Java DB Database

In this section, you’ll use the SQL script (books.sql) provided with this chapter’s examples to create the books database in NetBeans. Chapter 24 demonstrated several database apps that used the embedded version of Java DB. This chapter’s examples use the network server version.

Create the Database

Perform the following steps to create the books database:

1. In the upper-left corner of the NetBeans IDE, select the Services tab.

2. Expand the Databases node then right click Java DB. If Java DB is not already running the Start Server option will be enabled. In this case, SelectStart Server to launch the Java DB server. You may need to wait a moment for the servers to begin executing.

3. Right click the Databases ...

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.