From: Nelson Arapé <narape@ica.luz.ve>
To: pgsql-jdbc@postgresql.org
Subject: Re: FW: PostgreSQL JDBC Installation
Date: Wed, 8 Jun 2005 14:56:51 -0400
Message-ID: <200506081456.51871.narape@ica.luz.ve> (raw)
In-Reply-To: <260391368@web.de>
References: <260391368@web.de>
El Mié 08 Jun 2005 09:07, Stefan Grasse escribió:
> Hello,
>
> I got a question when downloading the newest
> postgresql-8.1dev-400.jdbc3.jar onto the Windows platform. Where do I have
> to store this jar ?
Any where on your hardrive. Ussually people have a specially directory where
they store jars. Other have a lib directory in their project directory. There
is no a standard way
> I have to unpack this jar, correct ?
No
> Do I have to set a CLASSPATH or similar variables (like PATH ?) ? If yes,
> what value should this variable have ?
You have to add the postgresql-8.1dev-400.jdbc3.jar to your classpath. There
are several ways to do that.
* If you are compiling from the command prompt
javac -classpath .:/path/to/jdebc/jar Project.java (on unix)
javac -classpath .;\path\to\jdebc\jar Project.java (on windows)
* If you use a IDE, you have to consult your IDE documentation in order to add
the jdbc jar to your classpath.
I hope to have helped
Nelson Arapé
PD: Sorry for my english
>
> When describing how to connect to the driver with the statement
> Class.forName("org.postgresql.Driver");
> I got the exception:
> java.lang.ClassNotFoundException: org.postgresql.Driver
>
> What went wrong ?
>
> I hope to get an answer of you soon
> Best regards
> Stefan
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
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: narape@ica.luz.ve
Subject: Re: FW: PostgreSQL JDBC Installation
In-Reply-To: <200506081456.51871.narape@ica.luz.ve>
References: <260391368@web.de> <200506081456.51871.narape@ica.luz.ve>
* 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