Re: Can't get JDBC to compile. Please help. - Mailing list pgsql-jdbc

From Guy Rouillier
Subject Re: Can't get JDBC to compile. Please help.
Date
Msg-id 49E37BB7.4000201@burntmail.com
Whole thread Raw
In response to Can't get JDBC to compile. Please help.  (IronSheikh <kazisiddiqui@gmail.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Helping application programmers catch threading bugs
Next
From: Kris Jurka
Date:
Subject: Re: Helping application programmers catch threading bugs