java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Posted by: devika bhatt
Date: October 26, 2004 02:04AM

Hi,

I am having some issues with MySQL connection. I get java.lang.ClassNotFoundException: com.mysql.jdbc.Driver Exception.
I've added mysql-connector-java-3.0.15-ga-bin.jar file to Enviroment variable.
still this exception is coming. so plz help me to solve this problem
I m running following application.
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class LoadDriver1
{
public static void main(String[] args)
{
try
{
Class.forName("com.mysql.jdbc.Driver").newInstance();
}
catch (Exception ex)
{
ex.printStackTrace();
}
}
}

Options: ReplyQuote


Subject
Written By
Posted
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
October 26, 2004 02:04AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.