Hello Everyone,
I am try to connect to mysql database through a RCP project. I downloaded the Mysql Jconnect file. Extracted to a folder. Set the classpath variable as mentioned in the document. Still I am not able to connect to Mysql. I am getting this error
SQLException: No suitable driver found for jdbc:mysql://localhost:3306/test
SQLState: 08001
VendorError: 0
I then tried add mysql-connect jar file as external jar file in the project, still no luck. Tried adding it as a user library, nothing happened.
Finally I created a "plugin project from existing jar file" option and used the mysql-connect as the jar file. Then in my RCP project I added this plugin as dependancy plugin, yet same result.
I am absolutely sure of the code, the error is in the classpath. How do I resolve it.
My configs are :
OS: Ubuntu 10.04
Mysql version: 5.2.1
Eclipse : 3.5
I tried putting the file in /usr/bin directory, that didn't work either...