• 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

jar file cannot find postgres driver

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
goodmorning, I'm facing a problem and, on all the solutions I found online, I still can't understand what I'm doing wrong.
I have a java appplication that connects to a database and can send out email to the user. On eclipse it works perfectly.
I proceeded on build an Ant file in order to compile, create database, make a jar file and clean up.
The build is successful and the jar file executes without troubles but, when I try to do some operation with database (using postgres) it shows this exception:



I understand that it's missing the postgres driver...but on all the solutions I found (and tried) online I'm still facing this issue...
here's my build.xml file



all the external jars are into the lib directory in the main project folder.
What I am doing wrong?
thank you for your help..
 
cristian zoccarato
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I solved this issue by copying the external jars that are inside my lib folder into a new lib inside "dist" folder where i create the main app .jar file. I have to do it manually.
Now looking for some Ant command to have it automatically.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic