From: Guy Rouillier <guyr-ml1@burntmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Can't get JDBC to compile. Please help.
Date: Mon, 13 Apr 2009 13:51:51 -0400
Message-ID: <49E37BB7.4000201@burntmail.com> (raw)
In-Reply-To: <23013717.post@talk.nabble.com>
References: <23013717.post@talk.nabble.com>
IronSheikh wrote:
> I'm a beginner. I installed PostGRESQL 8.3 with edb_pgjdbc.exe on Windows XP
> SP2.
>
> The following test code won't compile:
> NetBeans says:
> ***Exception:
> java.lang.ClassNotFoundException: org.postgresql.Driver
> I've tried adding "E:\Program Files\PostgreSQL\pgJDBC" to the CLASSPATH. Any
> suggestions?
The error message is pretty clear - it can't find the driver. You don't
add the entire directory to your classpath - just the JAR file
containing the JDBC driver.
--
Guy Rouillier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: guyr-ml1@burntmail.com
Subject: Re: Can't get JDBC to compile. Please help.
In-Reply-To: <49E37BB7.4000201@burntmail.com>
References: <23013717.post@talk.nabble.com> <49E37BB7.4000201@burntmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox