VS: JDBC

From: Janne Blomqvist <janne(dot)blomqvist(at)hansel(dot)fi>
To: "'Jackson Ching'" <jching(at)imvi(dot)com(dot)ph>, pgsql-general(at)postgresql(dot)org
Subject: VS: JDBC
Date: 2000-08-24 10:53:42
Message-ID: 2A80FDF6CF54D211A97D00A0C992F5906CE841@hanselx.hansel.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I've installed PostgreSQL 7.02 RPM Version with it's JDBC package RPM, now
i'm trying to run my java application that connects to postgresql. driver:

postgresql.Driver and connection:
jdbc:postgresql:mydb

I got errors saying class not found. i tried to check for the file
postgresql.jar and finder.jar ... i can't find them...
what i found from the rpm of jdbc is jdbc7.0-1.2.jar and
jdbc7.0-1.1.jar and the previous version jdbc6.5-1.2.jar and jdbc6.5-1.2.jar

What should i do? please help me. Thanks

jack

My JDBC experience is quite limited, but I suggest you start by reading
http://www.retep.org.uk/postgres/
In short: The driver is called 'org.postgresql.Driver' these days... Also
check that all the relevant jar files are in your CLASSPATH environment
variable. So if you use JDK 1.2 or 1.3 [Insert shameless plug about how
übercool IBM JDK 1.3 is..],
write at the prompt:
# export CLASSPATH=$CLASSPATH:/usr/lib/pgsql/jdbc7.0-1.2.jar

Janne Blomqvist
Trading House Hansel
janne(dot)blomqvist(at)hansel(dot)fi
+358-9-560 2261

Browse pgsql-general by date

  From Date Subject
Next Message John McKown 2000-08-24 11:55:47 Re: FW: Count & Distinct
Previous Message Rafa Couto 2000-08-24 08:07:46 RE: Importing into Postgres from a csv file