Finished Java project, now creating jar or .exe file (with Database)

前端 未结 5 1848
臣服心动
臣服心动 2021-02-04 20:46

So, i\'ve just finished a small java application, with database and stuff... I used Netbeans and Mysql, now i want to export my project so i can use it anywhere i want; any comp

5条回答
  •  失恋的感觉
    2021-02-04 21:03

    if you really want to give your users a good experience, I would suggest you implement a embedded database in your application instead.

    Look at: http://www.h2database.com/

    It's free and open source and I use it heavily myself. It supports embedded (where it creates flat database files on the computer), in-memory, and server-mode, where you have the possibility of letting multiple-applications share the same database.

    It's just a jar file you include in your application, and then the users wont have to install neither MySQL, have access to MySQL on a network drive or need other database software installed. (depending on your requirements, it might also be a good idea to look into Hibernate, to have some more abstraction between the different RDBMS).

提交回复
热议问题