从导出的Jar执行时找不到jdbc驱动程序 [英] jdbc driver not found when execute from exported Jar

查看:430
本文介绍了从导出的Jar执行时找不到jdbc驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java小程序,从eclipe执行时它可以正常工作,但是我想将其导出到Jar中并使用它.但是当我这样做时,我找不到jdbc驱动程序,好像在导出时,jaybird没有导出.

I have a Java applet, it works correctly when executed from eclipe, but I want to export it to a Jar and use it. but when I do that, i get jdbc driver not found, it seems like when exporting, jaybird is not exported.

对于导出,我使用eclipse export并选择Java/JAR File,在构建路径中,我有jaybird标记要导出.

For exporting I use eclipse export and choose Java/JAR File, in build path i have jaybird mark to export.

有什么建议吗?预先感谢

Any suggestions? Thanks in advance

推荐答案

我终于得到了答案,我也必须对jaybird jar进行签名,因为该jar正在HDD中进行读/写操作

I finally get the answer, I had to sign the jaybird jar also because that jar was doing read/write operation in HDD

这篇关于从导出的Jar执行时找不到jdbc驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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