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?
Asked
Active
Viewed 271 times
-3
-
Either create an uber jar by extracting the dependencies with your project classes or reference the external library using the manifest file. – Manoj Vadehra Jan 16 '19 at 10:32
-
2*when I go to run it the connection to the DB no longer works* this is no error description. Add a detaild error message – Jens Jan 16 '19 at 10:37