How to embed H2 database into jar file delivered to the client?

前端 未结 4 940
无人及你
无人及你 2021-01-13 02:41

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

4条回答
  •  臣服心动
    2021-01-13 03:00

    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.

提交回复
热议问题