Re: Exception Error - Please help I've tried everything!
От | Achilleas Mantzios |
---|---|
Тема | Re: Exception Error - Please help I've tried everything! |
Дата | |
Msg-id | 200611271401.34947.achill@matrix.gatewaynet.com обсуждение исходный текст |
Ответ на | Re: Exception Error - Please help I've tried everything! ("Greg Peters" <gregpeters79@gmail.com>) |
Список | 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 по дате отправления: