problem with jdbc driver
From: mamin (mamin_at_autograf.pl)
Date: 10/27/04
- Next message: Jesper Sahner: "Saving data from a SQL-query for later use"
- Previous message: Joe Weinstein: "Re: datetime JDBC date conversion"
- Next in thread: mamin: "Re: problem with jdbc driver"
- Reply: mamin: "Re: problem with jdbc driver"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 27 Oct 2004 19:28:37 +0200
A want to write simple programm to connect to database in MySQL, but there's
a problem because it doesn't see my jdbc driver. Everything works under
Win2000 server.
There's a code:
try{
Class.forName("org.mysql.Driver");
}catch(ClassNotFoundException e){
System.out.printl("ClassNotFoundException:"+e);
}
I also tried
Class.forName("com.mysql.jdbc.Driver");
and
Class.forName("org.gjt.mm.mysql.Driver");
but none of them works, I mean theres an exception:ClassNotFoundException.
There's a file mysql-connector-java-2.0.14.zip in c:\Program Files\Apache
Group\Tomcat 4.1\common\lib\ folder.So what's wrong?
- Next message: Jesper Sahner: "Saving data from a SQL-query for later use"
- Previous message: Joe Weinstein: "Re: datetime JDBC date conversion"
- Next in thread: mamin: "Re: problem with jdbc driver"
- Reply: mamin: "Re: problem with jdbc driver"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|