简体   繁体   中英

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. I have included mysql connector jar file in the project build path. MySQL function works fine when executed in Eclipse.

Please Make sure that the Jar file and the Lib directory Containing the Connector Jar are in the same location like this

Myjarfile.jar
 libdirectory
        Myconnectorjar.jar

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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