| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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? |
|
#2
| |||
| |||
| 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? > > |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.