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?
mamin - 27 Oct 2004 19:35 GMT
Never mind. The problem was that I've forgotten to unzip
mysql-connector-java-2.0.14.zip ;)))
> 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
[quoted text clipped - 15 lines]
> 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?