[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

JDBC in POSTGRESQL



I have loaded Red Hat Linux 5.2 in my computer.
I have started using Postgresql The ORDBMS which comes
with this CD. I have created my own tabels using psql
interactive query promt. 
       In the documentation part it is written that
JDBC driver is included with this CD. But when I wrote
a Java JDBC program to connect to my database I am facing some problem.
        To load the driver I have written the statement
   Calss.forname(postgres95.PGDriver); and
 String url="jdbc:postgres95:mydb?user=postgres&passwd=pass"
Connection con=Drivermanager.getConnection(url);

when I compile this program there is no problem.
But when I run the program using java I get a message
java.lang.classNotFoundException:Postgres95/PGDriver.

I found it in one website that to have this driver work
I should have postgresql.jar file in my current directory. But I could
not find this file any where
in linux directories.
   Where I will get this file?
 Or How I can make this program work?
 Or What is the way to use JDBC in Postgresql?
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
Flame baits will not be tolerated.  If you can appreciate satire read
http://www.templetons.com/brad/emily.html

------------------------------