Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 35E6C632E2F for ; Mon, 13 Apr 2009 15:10:00 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 27074-06-3 for ; Mon, 13 Apr 2009 15:09:43 -0300 (ADT) X-Greylist: delayed 00:16:31.95845 by SQLgrey-1.7.6 Received: from mx02.burntmail.com (mx02.burntmail.com [70.87.63.122]) by mail.postgresql.org (Postfix) with ESMTP id 25A6D6335E1 for ; Mon, 13 Apr 2009 15:08:51 -0300 (ADT) Received: from pool-173-79-55-100.washdc.fios.verizon.net ([173.79.55.100] helo=[127.0.0.1]) by mx02.burntmail.com with esmtpa (Exim 4.63) (envelope-from ) id 1LtQK0-0006xb-0f for pgsql-jdbc@postgresql.org; Mon, 13 Apr 2009 12:51:52 -0500 Message-ID: <49E37BB7.4000201@burntmail.com> Date: Mon, 13 Apr 2009 13:51:51 -0400 From: Guy Rouillier User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Can't get JDBC to compile. Please help. References: <23013717.post@talk.nabble.com> In-Reply-To: <23013717.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 090413-0, 04/13/2009), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/47 X-Sequence-Number: 19494 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