If your java desktop application needs to store data in a database then a good solution is to embed a database into your solution. This tutorial takes you step by step through embedding an SQLite database into your Java desktop application.
Download source code and art work
(you will need to provide an email address)
This approach avoids the need for the user to install a database separately from the application. This video demonstrates an application which installs the database as part of the application, builds the database tables and populates it with initial data.