I use H2 database for a desktop application in embedded mode. When I compress the application into jar file the database file is omitted. So, when I run MyApplication.jar no
If you want to put the database itself in your jar file, then this explanation might help:
http://www.h2database.com/html/features.html#database_in_zip
This is also discussed in this thread in the H2 forum.