tags:

views:

182

answers:

7

Possible Duplicate:
Embedded java databases

I want to embed a java relational database in my web application which I can just use by dropping a JAR file in the libs directory. What choices do I have?

+5  A: 

The most popular one is hsqldb. It's easy to use either as a RAM only database (very comfortable for tests) or file based.

tangens
+1  A: 

Apache Derby MySQL also has a Java embedded product

Trey
+3  A: 

java has has a small database included from version 6 on

http://www.oracle.com/technetwork/java/javadb/index.html

it's a fork of http://db.apache.org/derby/

another popular choice is http://hsqldb.org/

Nikolaus Gradwohl
+3  A: 

There is H2:

Welcome to H2, the Java SQL database. The main features of H2 are:

  • Very fast, open source, JDBC API
  • Embedded and server modes; in-memory databases
  • Browser based Console application
  • Small footprint: around 1 MB jar file size

http://www.h2database.com/html/main.html

NullUserException
+1  A: 

You could try Apache Derby DB, a variant of which is included in J2SE 6.

Bruno
+1  A: 

There is also Java DB called Derby here.

jjczopek
+7  A: 
Michael Barker