• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

build failed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 440
Hibernate Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read my last sentence again. And add to that: also post the full Ant output when running Ant.
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic