Re: Exception Error - Please help I've tried everything! - Mailing list pgsql-jdbc

From Achilleas Mantzios
Subject Re: Exception Error - Please help I've tried everything!
Date
Msg-id 200611271401.34947.achill@matrix.gatewaynet.com
Whole thread Raw
In response to Re: Exception Error - Please help I've tried everything!  ("Greg Peters" <gregpeters79@gmail.com>)
List 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@in.tum.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

pgsql-jdbc by date:

Previous
From: "Greg Peters"
Date:
Subject: Re: Exception Error - Please help I've tried everything!
Next
From: Sebastian Esch
Date:
Subject: Re: Exception Error - Please help I've tried everything!