Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 6434D632A0D for ; Wed, 2 Jun 2010 12:44:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 01635-01 for ; Wed, 2 Jun 2010 15:44:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outbound.vnet-inc.com (outbound.vnet-inc.com [216.146.104.103]) by mail.postgresql.org (Postfix) with ESMTP id 5FB9C632548 for ; Wed, 2 Jun 2010 12:44:13 -0300 (ADT) Received: from [192.168.157.32] (unknown [216.129.226.149]) by outbound.vnet-inc.com (Postfix) with ESMTP id D6C925996 for ; Wed, 2 Jun 2010 09:44:10 -0600 (MDT) Message-ID: <4C067B4E.7090201@ttc-cmc.net> Date: Wed, 02 Jun 2010 09:39:58 -0600 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Not able to connect to postgresql database References: <4C0526EB0200002500031C7D@gw.wicourts.gov> <4C061B1F0200002500031C9F@gw.wicourts.gov> In-Reply-To: <4C061B1F0200002500031C9F@gw.wicourts.gov> Content-Type: multipart/alternative; boundary="------------070109010704030200010006" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.489 tagged_above=-10 required=5 tests=BAYES_05=-0.5, HTML_MESSAGE=0.001, T_STOX_BOUND_090909_B=0.01 X-Spam-Level: X-Archive-Number: 201006/19 X-Sequence-Number: 20589 This is a multi-part message in MIME format. --------------070109010704030200010006 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit > > >Manohar Bhattarai wrote: > > > >>> I have added the jar in classpath also in the CLASSPATH variable >>> of /etc/environment file. Still I am getting exception : >>> java.lang.ClassNotFoundException: org.postgresql.Driver. >> >> > >You said you were using Eclipse, which I believe sets its own >classpath for each runnable you set up within it. Look for the >entry under the "Run..." or "Debug..." menu item and set it up >there. > >-Kevin > If you are using Eclipse, and during the initial configuration of the project the PostgreSQL driver was not present in the project directory then it will needed to be added. To set that: Highlight the Project: Project | Properties | Java Build Path | Libraries | Add JARs. danap. --------------070109010704030200010006 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
Manohar Bhattarai <manoharbhattarai@gmail.com> wrote:
 
  
> I have added the jar in classpath also in the CLASSPATH variable
> of /etc/environment file. Still I am getting exception :
> java.lang.ClassNotFoundException: org.postgresql.Driver.
    
 
You said you were using Eclipse, which I believe sets its own
classpath for each runnable you set up within it.  Look for the
entry under the "Run..." or "Debug..." menu item and set it up
there.
 
-Kevin

If you are using Eclipse, and during the initial configuration of the project
the PostgreSQL driver was not present in the project directory then it will
needed to be added. To set that:

Highlight the Project:   Project  |  Properties  |  Java Build Path  |  Libraries  |  Add JARs.

danap.
--------------070109010704030200010006--