Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4DAE09FA5C8 for ; Mon, 27 Nov 2006 08:01:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 47207-09 for ; Mon, 27 Nov 2006 08:01:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from matrix.gatewaynet.com (host2.dynacom.ondsl.gr [62.103.35.210]) by postgresql.org (Postfix) with ESMTP id 2462C9FA274 for ; Mon, 27 Nov 2006 08:01:38 -0400 (AST) Received: from host3.dynacom.ondsl.gr ([62.103.35.211] helo=ip216.internal.net) by matrix.gatewaynet.com with esmtp (Exim 4.62) (envelope-from ) id 1GofB1-0008RZ-LN for pgsql-jdbc@postgresql.org; Mon, 27 Nov 2006 14:01:35 +0200 From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-jdbc@postgresql.org Subject: Re: Exception Error - Please help I've tried everything! Date: Mon, 27 Nov 2006 14:01:34 +0200 User-Agent: KMail/1.9.3 References: <9bc001470611252348l5fd9f93fx2c1a0d45b2c082bb@mail.gmail.com> <456AC056.7040807@in.tum.de> <9bc001470611270329i429b2f18q40dfe76a97f102ce@mail.gmail.com> In-Reply-To: <9bc001470611270329i429b2f18q40dfe76a97f102ce@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200611271401.34947.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/133 X-Sequence-Number: 16175 =D3=F4=E9=F2 =C4=E5=F5=F4=DD=F1=E1 27 =CD=EF=DD=EC=E2=F1=E9=EF=F2 2006 13:2= 9, =EF/=E7 Greg Peters =DD=E3=F1=E1=F8=E5: > Thank you very much. That did it! Many thanks to all of you for your help! > I also got it to work in NB, with some fiddling. It turns out I didn't add > the library to the project properly. Thanks guys. I was just about to give > up on java and have a go at python! > > Can someone explain why the .; is necessary at all? PostgresqlClient.class lies in your current directory ("."), and adding the "." directory to the class path makes java aware of all classes in the "." "package". java will not assume you always want to have your current dir in your classpath, and hence the need for the explicit ".". > > Cheers, > > Greg > > On 11/27/06, Sebastian Esch wrote: > > Hi Greg! > > > > Try "java -cp .;postgresql.jar PostgresqlClient" > > > > On Windows the separator char for the classpath is ; not :. And it works > > for me only if the . is the first element of the classpath. =2D-=20 Achilleas Mantzios