Received: from mail.retep.org.uk ([216.126.85.184]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0V8USq20087; Wed, 31 Jan 2001 03:30:28 -0500 (EST) (envelope-from peter@retep.org.uk) Received: (from nobody@localhost) by mail.retep.org.uk (8.11.1/8.11.1) id f0V8URW20082; Wed, 31 Jan 2001 03:30:27 -0500 (EST) (envelope-from peter@retep.org.uk) X-Authentication-Warning: mail.retep.org.uk: nobody set sender to peter@retep.org.uk using -f To: v j Subject: Re: JDBC Connection Problem Message-ID: <980929827.3a77cd231bd59@webmail.retep.org.uk> Date: Wed, 31 Jan 2001 03:30:27 -0500 (EST) From: Peter T Mount Cc: pgsql-interfaces@postgresql.org, pgsql-jdbc@postgresql.org References: <20010131050947.38119.qmail@web9504.mail.yahoo.com> In-Reply-To: <20010131050947.38119.qmail@web9504.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.3 X-Archive-Number: 200101/324 X-Sequence-Number: 950 Quoting v j : redirected to the jdbc list: > Dear Sir, > I try to run the Java Program by using JDBC > PostgreSql. It can run under > only > /usr/local/pgsql/src/src/interfaces/jdbc but it can't > run under other directories ... Yes it can, as long as you put it into your CLASSPATH. ie, when built, you should find a file called postgresql.jar (named differently if you download from the websites). Say you copy it into say, /usr/local/lib. Then add the jar file to the classpath, ie: CLASSPATH=/usr/local/lib/postgresql.jar:$CLASSPATH Then when your application loads the driver, it will get it from that location. Peter -- Peter Mount peter@retep.org.uk PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/ RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/