I know that this question was asked many times before, but unfortunately none of the answers solved my problem, I'm using ubuntu 13.04
and I'm writing jsp
file on eclipse that has to be connected to mysql database but whenever I wrote the following line in the code :
Class.forName("com.mysql.jdbc.Driver").newInstance();
I found an exception java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
, I'm aware that I should use mysql-connector
jar file and drop it in web-INF folder and tomcat lib folder and some other folder but unfortunately none of these worked!.Any help please?(please be specific)