There is a VERY similar question to mine but in my case I don\'t have any duplicate jars in my build path, so the solution does not work for me. I\'ve searched google for a
assuming your project is maven based, add it to your POM:
mysql mysql-connector-java 5.1.26
Save > Build > and test connection again. It works! Your actual mysql java connector version may vary.