通过 Java 程序分发由 JavaDB 制作的数据库
我正在用 Java 创建一个程序,其中必须使用很多表。 我决定在 JavaDB 文件中创建所有这些表。
但是,现在我想将这个填充的 JavaDB 文件与我的 JAR 文件一起分发 用于分发,因为无法选择连接到服务器。
过去我只能用 JAR 分发一个空数据库 通过使用 Derby 包。
有什么想法吗?
太感谢了!
I'm creating a program in Java in which I have to use a lot of tables.
I made the decision to create all those tables in a JavaDB file.
However, now I want to distribute this filled JavaDB file with my JAR file
for distribution, since connecting to a server is not an option.
In the past I could only distribute an empty database with the JAR
by using that Derby package.
Any ideas?
Thank you so much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定我是否理解这个问题,但可以将只读数据库打包到 JAR 中。来自德比文档:
如果这不能回答问题,请澄清。
I'm not sure I understood the question but it is possible to package a read-only database inside a JAR. From the derby documentation:
If this doesn't answer the question, please clarify.