I have the jar file: mysql-connector-java-5.1.14-bin.jar
and I want to add it to my project.
I add the jar at this way: project-> properties -> (Java Build Path) Libraries and add it from external jars. But when I try to use it and write:
import com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource;
import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;
I get error under "com.mysql".
What is my mistake?