Received: from whirlwind.netspace.net.au (whirlwind.netspace.net.au [203.10.110.76]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f316FKK39381 for ; Sun, 1 Apr 2001 01:15:20 -0500 (EST) (envelope-from jlemcke@netspace.net.au) Received: from netspace.net.au (dialup-t3-243.Melbourne.netspace.net.au [210.15.194.243]) by whirlwind.netspace.net.au (8.11.1/8.11.1) with ESMTP id f316FD017888 for ; Sun, 1 Apr 2001 16:15:13 +1000 (EST) Message-ID: <3AC6C76B.EAE96FDF@netspace.net.au> Date: Sun, 01 Apr 2001 16:15:07 +1000 From: jlemcke Reply-To: jlemcke@bigfoot.com X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i586) X-Accept-Language: en,en-GB,en-US MIME-Version: 1.0 To: jdbc postgresql Subject: CLASSPATH (not) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200104/1 X-Sequence-Number: 387 Hi all, I've noticed quite a few postings lately about connecting to the jdbc driver. They all seem to mention having the CLASSPATH environment variable set correctly. In a lot of cases setting CLASSPATH is unnecessary. Java 1.2 introduced a feature called the Extension Mechanism which basically allows you to make a package accessible by placing its .jar file in a special Java runtime directory. All you need to do is copy (or link) your postgresql.jar (or your particular version of it) to the path_to_jre/lib/ext directory; path_to_jre on my Java installation is /usr/java/jdk1.3/jre . To quote Sun's documentation : > Any set of packages or classes can easily be made to play the role > of an extension. The first step in turning a set of classes into > an extension is to bundle them in a JAR file. Once that's done, you > can turn the software into an extension in two ways: > > * by placing the JAR file in a special location in the directory > structure of the Java Runtime Environment, in which case it's > called an installed extension. > * by referencing the JAR file in a specified way from the manifest > of the another JAR file, in which case it's called a download > extension. Check out Sun's Java Tutorial page at : http://java.sun.com/docs/books/tutorial/ext/index.html or their documentation at http://java.sun.com/products/jdk/1.2/docs/guide/extensions/ Have Fun, John L.