ant-user mailing list archives

Site index · List index
Message view
Top
From Andrew Goktepe <andrewgokt...@gmail.com>
Subject Re: problem with sql task
Date Mon, 06 Feb 2006 03:47:22 GMT
Yes, the problem is related to classes12.jar.

You need to specify the driver class name in the <sql> task, and you also
need the class to be found on your classpath. For example, in your Ant
script you might want to use

<sql driver="oracle.jdbc.driver.OracleDriver"  ...

and do this before running the script so that Ant can find the driver class:

set CLASSPATH=%CLASSPATH%;c:\path\to\classes12.jar

-Andrew

On 5 Feb 2006 19:04:57 -0000, Harshal Chavda <h_ant@rediffmail.com> wrote:
>
>
> Hello fellow users,
>                         I have been stuck in a problem regarding sql
> task.The problem is that I am unable to connect to the oracle database as
> whenever I perform the build using the sql task the error message is "Class
>
> My configuration is --Oracle 9i,Ant 1.6.3,jdk 1.3.1,windows XP.
>
> Please suggest me some solution as to where and how should I found the
> appropriate driver for the sql task.
>
> Also please specify whether my assumption about sql url is correct
> url="jdbc:oracle:thin:@localhost:<global databse name>"
>
> Has classes12.jar has anything to do with this driver attribute?Please
> specify.
>
> Thanks Harshal
>


Mime
• Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message