This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

build failed

 
Steve Raji
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Steve Raji
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Steve Raji
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read my last sentence again. And add to that: also post the full Ant output when running Ant.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic