Thanks. I tried them both but didn't see anything I didn't expect to see. I am 
still no closer to an answer.

=============================
Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.5.0_06\jr
bin\java.exe' with arguments:
'-classpath'
'H:\SARS-reports-j\sars.jar;C:\oracle\ora90JavaXDK\lib\xsu12.jar;C:\oracle\ora
JavaXDK\lib\xmlparserv2.jar'
com.kilonovember.alpo.sarsj.FetchDataAsXML'

<command line params list appears here>

     [java] Error in FetchDataAsXML.getXML(): java.lang.ClassNotFoundException:
oracle.jdbc.driver.OracleDriver
=============================

-- 
Charles Knell
[EMAIL PROTECTED] - email



-----Original Message-----
From:     James Abley <[EMAIL PROTECTED]>
Sent:     Thu, 19 Oct 2006 15:04:20 +0100
To:       Ant Users List <user@ant.apache.org>
Subject:  Re: Classpath failure has me mystified.

ant -v

ant -d

What equivalent command-line is ANT generating?

James

[EMAIL PROTECTED] wrote:
> My problem:
> 
> When running a build file, I get this error message:
> 
>      [java] Error in FetchDataAsXML.getXML(): 
> java.lang.ClassNotFoundException:
> oracle.jdbc.driver.OracleDriver
> 
> The relevant sections of the build file:
> 
>       <target name="init">
>               <tstamp>
>                       <format property="TODAY" pattern="MMMM dd, yyyy" />
>               </tstamp>
>               <!-- irrelevant properties omitted -->
>               <property name="oracle.xsu12.jar.path" 
> value="c:/oracle/ora90JavaXDK/lib/xsu12.jar" />
>               <property name="oracle.xml.parser.jar.path" 
> value="c:/oracle/ora90JavaXDK/lib/xmlparserv2.jar" />
>               <property name="sars.jar.path" value="../sars.jar" />
>       </target>
> 
>       <java classname="com.kilonovember.alpo.sarsj.FetchDataAsXML" 
> fork="true">
>               <classpath>
>                       <pathelement location="${sars.jar.path}" />
>                       <pathelement location="${oracle.xsu12.jar.path}" />
>                       <pathelement location="${oracle.xml.parser.jar.path}" />
>               </classpath>
>               <arg value="QueryFileName=${sql.dir}/${query.file}" />
>               <arg value="QueryName=${query.name}" />
>               <arg value="QueryVersion=${query.version}" />
>               <arg value="BindVariables=${query.bind-variables}" />
>               <arg value="XMLFileName=${xml.dir}/${outfile}" />
>       </java>
> 
> When I run the com.kilonovember.alpo.sarsj.FetchDataAsXML class from the 
> command line like this:
> 
> java -cp 
> %CLASSPATH%;../sars.jar;c:\oracle\ora90JavaXDK\lib\xsu12.jar;c:\oracle\ora90JavaXDK\lib\xmlparserv2.jar
>  com.kilonovember.alpo.sarsj.FetchDataAsXML QueryFileName=../queries.xml 
> QueryName=pending XMLFileName=hropeod.xml bindvars=1:2006-10-13;2:2006-10-15
> 
> the program executes without fault.
> 
> I have carefully checked to see that the elements of the classpath attribute 
> passed on the command line match the <pathelement location="" /> values, 
> 
> <property name="oracle.xsu12.jar.path" 
> value="c:/oracle/ora90JavaXDK/lib/xsu12.jar" />
> --
> c:\oracle\ora90JavaXDK\lib\xsu12.jar
> 
> <property name="oracle.xml.parser.jar.path" 
> value="c:/oracle/ora90JavaXDK/lib/xmlparserv2.jar" />
> --
> c:\oracle\ora90JavaXDK\lib\xmlparserv2.jar
> 
> so I am stumped as to why the build file gives this error.
> 
> Any insight you can offer will be gratefully accepted.
> 
> Thanks.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to