Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / October 2004

Tip: Looking for answers? Try searching our database.

problem with jdbc driver

Thread view: 
mamin - 27 Oct 2004 18:28 GMT
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?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.