Re: Exception Error - Please help I've tried everything!

From: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Exception Error - Please help I've tried everything!
Date: 2006-11-27 12:01:34
Message-ID: 200611271401.34947.achill@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Στις Δευτέρα 27 Νοέμβριος 2006 13:29, ο/η Greg Peters έγραψε:
> 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 <esch(at)in(dot)tum(dot)de> 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.

--
Achilleas Mantzios

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Sebastian Esch 2006-11-27 12:19:26 Re: Exception Error - Please help I've tried everything!
Previous Message Greg Peters 2006-11-27 11:29:11 Re: Exception Error - Please help I've tried everything!