You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "ALIA-SC, David" <Da...@AirLiquide.com> on 2003/02/18 19:07:14 UTC
Classpath not found using sql task
Hi,
I don't understand why the classpath I use in the sql ant task doesn't
work...
Here the code :
<sql
driver="oracle.jdbc.driver.OracleDriver"
url="${database.jdbc.url}"
userid="${database.jdbc.user}"
password="${database.jdbc.password}"
classpath="c:/jdk1.3.1_02/lib/classes12.zip"
>
I get this error message : "Class Not Found: JDBC driver
"oracle.jdbc.driver.OracleDriver" could not be loaded". Even if I put the
classes12.zip file into the same directory...
Can somebody help me ?
Thanks
David
Re: Classpath not found using sql task
Posted by Martin <mg...@hotmail.com>.
David-
Classpath should include this location
<path id="classpath">
<pathelement location="${jdev.home}/jdbc/lib/classes12.jar"/>
...
</path>
-Martin
----- Original Message -----
From: "Steve Loughran" <st...@iseran.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Tuesday, February 18, 2003 7:08 PM
Subject: Re: Classpath not found using sql task
> what happens when you rename the .zip file .jar?
> ----- Original Message -----
> From: "ALIA-SC, David" <Da...@AirLiquide.com>
> To: "Ant Users List" <an...@jakarta.apache.org>
> Sent: Tuesday, February 18, 2003 10:07
> Subject: Classpath not found using sql task
>
>
> > Hi,
> >
> > I don't understand why the classpath I use in the sql ant task doesn't
> > work...
> > Here the code :
> >
> > <sql
> > driver="oracle.jdbc.driver.OracleDriver"
> > url="${database.jdbc.url}"
> > userid="${database.jdbc.user}"
> > password="${database.jdbc.password}"
> > classpath="c:/jdk1.3.1_02/lib/classes12.zip"
> > >
> >
> > I get this error message : "Class Not Found: JDBC driver
> > "oracle.jdbc.driver.OracleDriver" could not be loaded". Even if I put
the
> > classes12.zip file into the same directory...
> >
> > Can somebody help me ?
> >
> > Thanks
> > David
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
Re: Classpath not found using sql task
Posted by Steve Loughran <st...@iseran.com>.
what happens when you rename the .zip file .jar?
----- Original Message -----
From: "ALIA-SC, David" <Da...@AirLiquide.com>
To: "Ant Users List" <an...@jakarta.apache.org>
Sent: Tuesday, February 18, 2003 10:07
Subject: Classpath not found using sql task
> Hi,
>
> I don't understand why the classpath I use in the sql ant task doesn't
> work...
> Here the code :
>
> <sql
> driver="oracle.jdbc.driver.OracleDriver"
> url="${database.jdbc.url}"
> userid="${database.jdbc.user}"
> password="${database.jdbc.password}"
> classpath="c:/jdk1.3.1_02/lib/classes12.zip"
> >
>
> I get this error message : "Class Not Found: JDBC driver
> "oracle.jdbc.driver.OracleDriver" could not be loaded". Even if I put the
> classes12.zip file into the same directory...
>
> Can somebody help me ?
>
> Thanks
> David
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>