problem with jdbc driver

This is a discussion on problem with jdbc driver within the JDBC JAVA forums in Framework and Interface Programming category; 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?...

Go Back   Application Development Forum > Framework and Interface Programming > JDBC JAVA

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-27-2004, 01:28 PM
mamin
Guest
 
Default problem with jdbc driver

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?


Reply With Quote
  #2  
Old 10-27-2004, 02:36 PM
mamin
Guest
 
Default Re: problem with jdbc driver

Never mind. The problem was that I've forgotten to unzip
mysql-connector-java-2.0.14.zip ))
Użytkownik "mamin" <mamin@autograf.pl> napisał w wiadomości
news:clols4$3ec$1@atlantis.news.tpi.pl...
> 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?
>
>



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:07 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.