Re: Postgreslq Driver in Java & Windows - Mailing list pgsql-general

From Doug McNaught
Subject Re: Postgreslq Driver in Java & Windows
Date
Msg-id m3fzpf47j2.fsf@varsoon.wireboard.com
Whole thread Raw
In response to Postgreslq Driver in Java & Windows  ("Kevin" <kvhui@msn.com>)
List pgsql-general
"Kevin" <kvhui@msn.com> writes:

> Hi,
>
> I am a student who just learned Java and its JDBC capability.
>
> I got a sample Java files which uses postgresql driver, I also got a
> psqlodbc driver for Windows (2000 or XP) from:
> http://gborg.postgresql.org/project/psqlodbc/genpage.php?downloads and get
> it installed.
>
> I wonder if I can run the java program in the above environment.  Below are
> some sample codes extract from the sample java file.
>
> When I run this program, I got an error like "connection rejected, please
> check host and port and make sure the postmaster used the -i option when
> opening the TCP/IP networking function" (This error message is originally in
> Chinese).
>
> May I know is that a setup problem and if so, how can I correct it?  Or,
> must I install a Postres database?  If so, is there any trial version for
> Windows?  I don't have the localhost/data_mining directory but I don't know
> where should I create this directory.

You need to have a PostgreSQL server to connect to.  The current
version of the server runs on Windows using the Cygwin libraries--it's
not production quality but should be fine for development work.  You
should be able to download binaries for Windows through
www.postgresql.org.

-Doug

pgsql-general by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: ssl
Next
From: Doug McNaught
Date:
Subject: Re: Problems with deleting data.