E.g. http://old.nabble.com/Hand
<sql classpath="sql/${jdbc.jar}
(Or wherever your jar is located...)
Main Topics
Browse All TopicsHi experts.
I'm trying to build a simple ANT script that connects to a derby database (network server, not embedded) and then executes a sql script.
here is my xml so far:
<target name="create db structure">
<sql
driver="org.apache.derby.j
url="jdbc:derby://localhos
userid=""
password=""
src="db.sql"
/>
</target>
The error i get is:
BUILD FAILED
D:\JAVA\projects\network\b
Any idea how to fix this?
thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
E.g. http://old.nabble.com/Hand
<sql classpath="sql/${jdbc.jar}
(Or wherever your jar is located...)
That I don't know about, you might want to start a different question, or review the documentation for your driver. (Is that behavior driver specific? Does an Exception come up through the jdbc driver? Stacktrace? Does derby allow passwordless login?) Your original error was general Java knowledge, not finding a class means a bad classpath usually. But these other questions seem pretty specific to ant/sql/driver which I am not as familiar with, sorry.
You seem to be having the same problem as this person:
http://mail-archives.apach
Which if it's the same root cause is that (according to that post) the implementation is calling:
DriverManager.getConnectio
Instead of:
DriverManager.getConnectio
They seem to have found a workaround posted at the very end, which is to just supply dummy user and password.
Business Accounts
Answer for Membership
by: jb1devPosted on 2009-11-02 at 16:02:37ID: 25725063
Do you need to set a classpath pointing to the jar file containing the class driver org.apache.derby.jdbc.Clie ntDriver?