Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B58BE9FB4EC for ; Tue, 15 May 2007 08:50:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 97764-09 for ; Tue, 15 May 2007 08:50:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 9138D9FB3FD for ; Tue, 15 May 2007 08:50:14 -0300 (ADT) Received: from 222-154-166-21.jetstream.xtra.co.nz ([222.154.166.21] helo=[10.1.1.3]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1HnvXd-0001P1-OR; Tue, 15 May 2007 23:50:10 +1200 Message-ID: <46499E6C.4050900@opencloud.com> Date: Tue, 15 May 2007 23:50:04 +1200 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Geert Verhaag CC: pgsql-jdbc@postgresql.org Subject: Re: JDBC and ClassNotFoundException References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/46 X-Sequence-Number: 17036 Geert Verhaag wrote: > So I launch the application with the command: java -jar > AppName.jar at the command prompt If you specify -jar the JVM ignores any other classpath you set. Either bundle the driver into your application jar (including it by reference in a manifest class-path may work, I can't remember), or use -classpath and an explicit class name instead of -jar. -O