mysql-connector-java-5.1.47.jar library does not work in the .jar file

319 Views Asked by At

I have created a java application that connects to a mysql database. I imported the libraries as a request from the ide netbenas 10 and trying it works. But when I export the application in jar format, when I go to run it the connection to the DB no longer works. Does anyone know how I can do?

1

There are 1 best solutions below

0
On

Please add the mysql jdbc jar in the classpath while executing your Jar.