有什么方法来保存jar包中的apache derby数据库文件 [英] Is there any way to save embbeded apache derby database files in jar

查看:142
本文介绍了有什么方法来保存jar包中的apache derby数据库文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,当我点击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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆