This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Error creating mysql database using ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Error creating mysql database using ant" Watch "Error creating mysql database using ant" New topic
Author

Error creating mysql database using ant

Antonio Bertil Paiva
Greenhorn

Joined: Dec 17, 2012
Posts: 3
Hello,

i get the following error after running ant create-mysql-database

BUILD FAILED
C:\JDBCTutorial\build.xml:73: Class Not Found: JDBC driver org.apache.derby.jdbc.EmbeddedDriver could not be loaded

the PATH is set with driver path

Please, is there somebody that can help me?

Thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5811
    
    7

Looks like Ant is not picking up the MySQL JDBC JAR file. the build.xml file should have a way of setting that, either in the file itself or via external properties files, or via a system property on the command line. I would have to see the build.xml file to offer more concrete advice. (I assume that you have downloaded the MySQL JDBC JAR file, right?))


JBoss In Action
Antonio Bertil Paiva
Greenhorn

Joined: Dec 17, 2012
Posts: 3
Thanks for your help. I've solved the problem. My problem now is that MySQL is not starting as service on windows xp. It gives me an error.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Then we can mark this thread as "Resolved".

Of course if you reach a roadblock with your MySQL service problem, you can always post another question here on the Ranch!
Antonio Bertil Paiva
Greenhorn

Joined: Dec 17, 2012
Posts: 3
Yes this topic is resolved. I will post the problem of MySQL soon. Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error creating mysql database using ant
 
Similar Threads
hibernate 4 and spring 3.1.2 issue with LocalSessionFactoryBuilder
Scope of Groovy Language
Groovy vs Java Closures
Reg XA Driver Configuration
Table Viewer GUI from a Database