Skip site navigation (1) Skip section navigation (2)

Re: FW: PostgreSQL JDBC Installation

From: Nelson Arapé <narape(at)ica(dot)luz(dot)ve>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: FW: PostgreSQL JDBC Installation
Date: 2005-06-08 18:56:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
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 ?

> 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      (on unix)
javac -classpath .;\path\to\jdebc\jar      (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

In response to

pgsql-jdbc by date

Next:From: torbenDate: 2005-06-08 19:19:32
Subject: Re: Jboss and largeObjectManager
Previous:From: Vadim NasardinovDate: 2005-06-08 18:51:38
Subject: Re: Jboss and largeObjectManager

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group