使用由单个安装程序安装的SQLite的Java Desktop Application [英] Java Desktop Application using SQLite installed by a single installer
问题描述
我是编程Java Desktop Application与数据库交互的初学者。我的目标是创建一个简单的java应用程序,它使用数据库在本地存储它的数据。经过一些谷歌搜索后,我发现SQLite / Derby将满足我的需求。
I am a beginner in programming Java Desktop Application interacting with databases. My goal is to make a simple java application which uses a database to store it's data locally. After some googling I found that SQLite/Derby would cover my needs.
我用谷歌搜索了SQLite和Derby,我发现为了使用它们我需要安装它们通过终端中的命令在计算机上。
I've googled SQLite and Derby and I found that in order to use them I need to install them on the computer through commands in terminal.
我的问题是如何完成应用程序,以便最终为客户端提供一个安装Java的简单安装程序文件应用程序和SQLite / Derby数据库之前避免进行任何安装。
My question is how the application could be done so that at the end the client will be given a simple installer file which installs both Java Application and the SQLite/Derby Database avoiding doing any installations before.
这可能吗?
推荐答案
我认为最简单的方法是在嵌入式
模式下使用数据库。可以通过这种方式使用不同的数据库:
I think the easyest for you is to use the database in embedded
mode. Different databases could be use in this way :
- Derby
- SQLLite and for more details you could at this answer
- HSQLDB
数据库与您的应用程序jar一起打包,所以你不要不需要安装它。
The database is packaged with your application jar, so you don't need to install it.
这篇关于使用由单个安装程序安装的SQLite的Java Desktop Application的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!