Is it possible to access a SQLite database file outside of an executable JAR?

时光怂恿深爱的人放手 提交于 2019-12-07 07:17:24

Well, here is such term as "working directory". It is the directory from where your application is started. So, every "relative" path in your application is usually relative to this "working directory".

Now let's return to your problem. When you set the path to a file you can make it either relative, absolute or relative to the JAR inner directory root, depending how you do create the file and set the path.

So, just recheck how paths are set in your application and try to use the relative one, running you application from the appropriate directory.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!