Skip to main content

Posts

Showing posts with the label how-to

Java 6 Feature : Working with Derby Database

The Java 5 and Java 6 releases have introduced some significant changes. While Java 5 introduces new features (e.g. Generics, Variable arguments, Enhanced for loop , Boxing/unboxing , Type-safe enumerations, Static import , Metadata), Java 6 installation includes a lightweight database known as Derby . Derby is actually an Apache Database project. Derby is a transactional, relational database and provides a small footprint on disk. When you install Java 6, core libraries, example programs, and a sample database gets automatically installed. Derby has a command-line tool called ij . This tool provides a way to connect to and manipulate Derby databases. To connect to Derby is quite easy. You need to have following jar files in the classpath to enable you to access Derby: D:\tools\jdk1.6.0_01\db\lib\derby.jar D:\tools\jdk1.6.0_01\db\lib\derbytools.jar The derby.jar has JDBC drivers, while derbytools.jar contains the ij tool. Once you have configured the classpath for Derby, open the com...