-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: classNotFoundException for postgres
PostPosted: Thu Feb 23, 2006 6:37 am 
Newbie

Joined: Mon Feb 13, 2006 4:39 am
Posts: 3
hibernate3.1.2,postgresql 7.4.1......

hi, now in process to complete hibernate tutorial..As mentioned early, i'm using postgres database server and put the jdbc driver to /lib folder. I got error when try to run this command: ant run -Daction=store

the error:
[java] 17:40:42,147 FATAL DriverManagerConnectionProvider:65 - JDBC Driver class not found: org.postgresql.Driver
[java] java.lang.ClassNotFoundException: org.postgresql.Driver
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)

i already check my postgres jdbc driver and it the right one..

any help appreciated


Top
 Profile  
 
 Post subject: classpath
PostPosted: Tue Feb 28, 2006 6:37 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
the jar file has to be in the classpath, make sure that build.xml includes it when constructs classpath for the java task

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.