I get a error when I want to run a .jar file, the .jar file needs the mysql jdbc driver and I have add the path in my mainfest file. But it doesn't works. I am sure that the path is right.
Here my manifest file: (MANIFEST.MF)
Manifest-Version: 1.0
Main-Class: com.project.beta.Main
Class-Path: mysql-connector-java-5.1.34.jar
And this is the error:
Error - Problem with the MySQL server, error: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
I build the jar file on my pc through Eclipse, and run the jar file on my Ubuntu server.
PS: I have also tried this with -cp, but also that doesn't works.
-cp?Export -> Java -> Runnable Jar File. Using -cp it should work too, but creating a fat jar is a nice approach - and it's easier.-cpincluding your application's jar and specify the main class of your application.