From: dmp <danap@ttc-cmc.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Not able to connect to postgresql database
Date: Wed, 02 Jun 2010 09:39:58 -0600
Message-ID: <4C067B4E.7090201@ttc-cmc.net> (raw)
In-Reply-To: <4C061B1F0200002500031C9F@gw.wicourts.gov>
References: <AANLkTinBl2QsPy0vCg0gN1fzy96ttltXpK0TVGqeiRlU@mail.gmail.com>
<4C0526EB0200002500031C7D@gw.wicourts.gov>
<hu45l7$d93$1@news.albasani.net>
<AANLkTik2jrpbhS_QrD32GjiyaDveBq-BROeM_IFZh-FZ@mail.gmail.com>
<4C061B1F0200002500031C9F@gw.wicourts.gov>
>
>
>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.
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: danap@ttc-cmc.net
Subject: Re: Not able to connect to postgresql database
In-Reply-To: <4C067B4E.7090201@ttc-cmc.net>
References: <AANLkTinBl2QsPy0vCg0gN1fzy96ttltXpK0TVGqeiRlU@mail.gmail.com> <4C0526EB0200002500031C7D@gw.wicourts.gov> <hu45l7$d93$1@news.albasani.net> <AANLkTik2jrpbhS_QrD32GjiyaDveBq-BROeM_IFZh-FZ@mail.gmail.com> <4C061B1F0200002500031C9F@gw.wicourts.gov> <4C067B4E.7090201@ttc-cmc.net>
* 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