有什么方法来保存jar包中的apache derby数据库文件 [英] Is there any way to save embbeded apache derby database files in jar
问题描述
在我的项目中,当我点击jar文件,它提取嵌入的数据库文件到自己附近。
In my project when i clicked the jar file it extracts embedded database files to near it self.
有没有办法让他们留在jar文件?
Is there any way to make them stay in the jar file?
推荐答案
您可以将只读Derby数据库打包到类路径中的一个jar文件中,连接URL的形式。请参阅: http://db.apache.org/derby/docs/10.8 /devguide/cdevdvlp24155.html 和 http:// db.apache.org/derby/docs/10.8/devguide/cdevdeploy11201.html#cdevdeploy11201
You can package a read-only Derby database into one of the jar files in your classpath, and access it using a different form of the connection URL. See: http://db.apache.org/derby/docs/10.8/devguide/cdevdvlp24155.html and http://db.apache.org/derby/docs/10.8/devguide/cdevdeploy11201.html#cdevdeploy11201
这篇关于有什么方法来保存jar包中的apache derby数据库文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!