Re: Can't get JDBC to compile. Please help.

From: Guy Rouillier <guyr-ml1(at)burntmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Can't get JDBC to compile. Please help.
Date: 2009-04-13 17:51:51
Message-ID: 49E37BB7.4000201@burntmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kevin Grittner 2009-04-13 18:03:50 Re: Helping application programmers catch threading bugs
Previous Message Kevin Grittner 2009-04-13 17:48:42 Helping application programmers catch threading bugs