Jackrabbit is a good implementation of JSR-170 for Content management systems,
it is very good to store tree like structures.
if you need a database which doesn't need installation there are plenty of them available,
you can start with HSQL which is bundled with lots of components.
from JDK 6, Java DB is also bundled in JDK so you can use Java DB ( formerly derby and cloudscape)