ClassNotFoundException when using MYSQL

I copied the JDBC driver into the lib/ext folder in my screen-scraper installation but I still get a ClassNotFoundException when I call the script. My script is:

import java.sql.*;

Class.forName("com.mysql.jdbc.Driver").newInstance();

and that is where it calls the error

I restarted Screen Scraper

I restarted Screen Scraper and the computer and it still throws the same error.

Then I need to know exactly

Then I need to know exactly which driver you used, and a sample of your script so I can see if I can identify the issue.

I have the

I have the mysql-connector-java-5.1.21 in the lib/ext folder and my script is:

import java.sql.*;

Class.forName("com.mysql.jdbc.Driver").newInstance();

and after that line it calls the error

Hi Christian, Your code looks

Hi Christian,

Your code looks okay to me. Could you confirm that you have the actual jar file in screen-scraper's lib/ext folder? That is, if you view the contents of the lib/ext folder where screen-scraper's installed you should see:

mysql-connector-java-5.1.21-bin.jar

Todd

Did you restart

Did you restart screen-scraper after putting the jar in lib/ext? If not, you need to do so.