简体   繁体   English

在jar文件中找不到MySQL JDBC连接器

[英]MySQL JDBC connector not found in jar file

I have been working on project and when i made the jar file and executed it, everything works fine but when the sql connector is called,It gives an error saying mysql driver not found. 我一直在从事项目工作,当我制作jar文件并执行它时,一切正常,但是当调用sql连接器时,出现错误,提示找不到mysql驱动程序。 I have included mysql connector jar file in the project build path. 我在项目构建路径中包含了mysql连接器jar文件。 MySQL function works fine when executed in Eclipse. 在Eclipse中执行时,MySQL函数工作正常。

Please Make sure that the Jar file and the Lib directory Containing the Connector Jar are in the same location like this 请确保Jar文件和包含连接器Jar的Lib目录位于同一位置

Myjarfile.jar
 libdirectory
        Myconnectorjar.jar

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM