Re: Compiling postgres to is jdbc

From: "Joe Shevland" <jshevland(at)j-elite(dot)com>
To: "M(dot) T(dot) Argent" <MTArgent(at)silverfe(dot)demon(dot)co(dot)uk>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Compiling postgres to is jdbc
Date: 2002-06-09 22:09:34
Message-ID: HEECIHEEJDBMCCGMGIOBKEENCIAA.jshevland@j-elite.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

You don't actually need to recompile the backend in order for it to
support connections from Java (its just pure TCP/IP); the --with-java
option just compiles the JDBC driver along with the backend. You can also
download the JDBC driver from http://jdbc.postgresql.org .

But, the problem you are seeing is happening as a result of not running
'make' in the top level source directory - you need to do this first
before attempting to build via Ant. IMHO this should not be required as I
don't think the JDBC build process should be dependant on the main
distribution or running make - I think a pure Ant build is more
appropriate for a Java interface.

Cheers,
Joe

> I am trying to use the jdbc with postgres, and coming unglued. I'm using
> Postgres 7.2 on a netbsd box. At the moment the postgres works fine from
> C, so I am truing to recompile in order to use the jdbc.
>
> I've installed ANT, and (as far as I can see) have it working. I've gone
> "configure --with-java", and that seems fine, but when I then go "make"
> it gets as far as invoking ANT to use the build.xml file, and I then
get:
>
> compile:
> [javac] Compiling 1 source file to
> /home/mark/src/pgsql/src/interfaces/jdbc/build
> [javac]
> /home/mark/src/pgsql/src/interfaces/jdbc/org/postgresql/Driver.jav
> a:235: ';' expected.
> [javac] return ${major};
> [javac] ^
> [javac]

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Joe Shevland 2002-06-09 22:25:56 Re: Compiling postgres to is jdbc
Previous Message Serguei Mokhov 2002-06-09 19:31:45 Re: Java GUI development