problem with jdbc driver

From: mamin (mamin_at_autograf.pl)
Date: 10/27/04


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?



Relevant Pages

  • Re: MySQL JDBC driver - implications for non-GPLed apps
    ... tool that produces reports from the content of the existing database. ... > legitimate to interact with MySQL JDBC drivers via the JDBC interface. ... > GPL license on the driver. ... the application must identify the JDBC driver by its name. ...
    (comp.lang.java.databases)
  • Re: MySQl-database
    ... You should be either writing a GPL app or willing to pay a good bit ... to use this database. ... as MySQL has happily accepted donated work under the premise that they ... The JDBC driver needs to be accessible to the JRE, ...
    (comp.lang.java.databases)
  • MySQL JDBC driver - implications for non-GPLed apps
    ... closed-sourced application that makes use of the GPLed MySQL JDBC driver? ... Here I am talking about using the driver "as is", ... another database by using its driver makes the entire application a "derived ...
    (comp.lang.java.databases)
  • Re: MySQL Database problem (probably already solved in a message, but this is somewhat urgent)
    ... MySQL server has a database with a table, ... columns, an FSR column, and a password column. ... checked if the supposed arrays that were returned were actually arrays ...
    (comp.lang.php)
  • RE: FreeBSD 5.3 MySQL Performance
    ... versions of Linux and FreeBSD for most tests. ... > popular with the ATA disk drive manufacturers. ... > Many companies have used FreeBSD and MySQL for years and years. ... it is not often that you have such a small database and such a large ...
    (freebsd-questions)