wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes build failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "build failed" Watch "build failed" New topic
Author

build failed

Steve Raji
Greenhorn

Joined: Feb 25, 2013
Posts: 5
I tried to execute an "ant fresh_install" command on command prompt on windows, while installing dspace on my computer and I got the following error message followed by 'BUILD FAILED"

[java] Error:
[java] -java.sql.SQLException: java.lang.ClassNotFoundException: org.postgresql.driver

thats the error message, please what do I do? thanks.
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

Hello Steve Raji ,

You need to specify the classpath entries for the dependancies. According to the exceptions, you are missing the "org.postgresql.driver" jar from your classpath. If you have a separate library folder with all the required jars for the project , are you sure you havent forgotten to reference it from the configuration build.xml ?


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Steve Raji
Greenhorn

Joined: Feb 25, 2013
Posts: 5
Thanks, but all the required jars are in the same folder, am running the project from a dvd-rom cos that's how the installation is supposed to go and I'm following the installation instructions, I've actually done it before and didn't encounter a problem like this.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

That might all be true but the fact still remains that the build is expecting to find the postgresql JAR file in the classpath but it is not there. You need to look at the classpath being used for the task that is failing and verify that the JAR file is included in that classpath. You might try runnign ant with the -v option to get verbose output, that might cause the task to print out its classpath. Or you could post the build.xml file (or at least the task that is failing and any classpath references for that task) and the full path location for the postgresql JAR file.


JBoss In Action
Steve Raji
Greenhorn

Joined: Feb 25, 2013
Posts: 5
Thanks but I just tried using the -V but it didnt work and it said I should run ant without using CLASSPATH
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Read my last sentence again. And add to that: also post the full Ant output when running Ant.
 
Don't get me started about those stupid light bulbs.
 
subject: build failed
 
Similar Threads
Jar file for the codebase
Examiner's Path to JDK executables
build.xml failed
XALAN INSTALLATION PROBLEMS.
Selenium - How to use the verify command