problem with mysql-connect
Posted by: deemer.d
Date: March 31, 2005 04:06PM

Hi I am a very newbie in using mysql...I wanted to connect to Mysql database using jdbc I have installed connector frym mysql site...I try to launch sample code :

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
// Notice, do not import com.mysql.jdbc.*
// or you will have problems!
public class LoadDriver {
public static void main(String[] args) {
try {
// The newInstance() call is a work around for some
// broken Java implementations
Class.forName("com.mysql.jdbc.Driver").newInstance();
} catch (Exception ex) {
System.out.println(ex.getMessage());
}
}

As a result of thrown exception I get the message " com.mysql.jdbc.Driver "

I copied *.jar file as it was written i manual but it doesn't help I tried everything:) so please HELP me I will be glad....

Options: ReplyQuote


Subject
Written By
Posted
problem with mysql-connect
March 31, 2005 04:06PM


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.