创建使用Sqlite DB的eclipse项目的.jar [英] Create .jar of an eclipse project that uses Sqlite DB

查看:148
本文介绍了创建使用Sqlite DB的eclipse项目的.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在为项目创建.jar时遇到问题。我能够创建.jar文件,但它不会运行,它也不会崩溃,它只是不起作用,我不知道为什么。

I am having problems creating the .jar for my project. I am able to create the .jar file but then it doesn't run, it doesn't crashes neither, it just doesn't work and I have no idea why.

因为我不太了解.jars,所以我列出了一些可能出现问题的可疑事项:

Since I don't know very much about .jars, here I list some of the suspicious things that may be the problem:


  • 项目使用sqlite db;项目中有一个db文件夹,其中包含/Project/db/adsiDB.sqlite

  • The projects uses a sqlite db; there is a db folder inside the project which contains it "/Project/db/adsiDB.sqlite"

将Sqlite jdbc的.jar添加为java构建项目中的外部jar

The .jar for the Sqlite jdbc is added as an external jar in the java build project

Sqlite jdbc的.jar位于项目的主文件夹中(/ Project / sqlitejdbc-v056)

The .jar for the Sqlite jdbc is in the main folder of the project ( /Project/sqlitejdbc-v056 )

当我通过eclipse导出项目时,.jar会导出到桌面,就是这样。它不会创建带有.jar和其他文件的文件夹,它只是.jar,对我来说似乎很少见。

When I export the project via eclipse, the .jar is exported to the desktop, and that's it. It doesn't create a folder with the .jar and other files, it's just the .jar and it seems rare to me.

好的,这就是全部。我不知道是否有其中一个原因或是否有其他建议。

OK, so that's all. I don't know if one of this things may be the reason or if there are any other suggestions.

推荐答案

这可能是晚了对于这个问题,但我要说的可以帮助其他人。

It's maybe late for this question but what I will say can help others.

当您导出项目时,尝试使用ohters库导出。
我想你必须在你的项目中有sqlite驱动程序,所以你应该导出所有库。

When you are exporting your project, try to export with ohters library. I imagine that you must have the sqlite driver in your project so you should export with all libraries.

在导出选择中最好选择runnable jar文件。

At the exporting choice it's better to select runnable jar files.

这篇关于创建使用Sqlite DB的eclipse项目的.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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