Compiling postgres to is jdbc - Mailing list pgsql-jdbc

From MTArgent@silverfe.demon.co.uk (M. T. Argent)
Subject Compiling postgres to is jdbc
Date
Msg-id 20020609.161958.20@silverfe.silverfe.demon.co.uk
Whole thread Raw
Responses Re: Compiling postgres to is jdbc
Re: Compiling postgres to is jdbc
List pgsql-jdbc
Hi

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.java:235: ';' expected.
    [javac]             return ${major};
    [javac]                     ^
    [javac] /home/mark/src/pgsql/src/interfaces/jdbc/org/postgresql/Driver.java:235: Invalid expression statement.
    [javac]             return ${major};
    [javac]                      ^
    [javac] /home/mark/src/pgsql/src/interfaces/jdbc/org/postgresql/Driver.java:235: ';' expected.
    [javac]             return ${major};
    [javac]                           ^
    [javac] /home/mark/src/pgsql/src/interfaces/jdbc/org/postgresql/Driver.java:245: ';' expected.
    [javac]              return ${minor};
    [javac]                      ^
    [javac] /home/mark/src/pgsql/src/interfaces/jdbc/org/postgresql/Driver.java:245: Invalid expression statement.
    [javac]              return ${minor};
    [javac]                       ^
    [javac] /home/mark/src/pgsql/src/interfaces/jdbc/org/postgresql/Driver.java:245: ';' expected.
    [javac]              return ${minor};
    [javac]                            ^
    [javac] 6 errors


These errors appear to relate to code of the following form:

public int getMajorVersion()
{
return ${major};
}


Can anybody shed any light pn what might be going wrong, and what I might be able to do in order to get round it?

Many thanks in advance

mark






pgsql-jdbc by date:

Previous
From: Jason Davies
Date:
Subject: Patch for ResultSetMetaData.getColumnClassName(), ResultSet.getObject()
Next
From: Jason Davies
Date:
Subject: Re: Compiling postgres to is jdbc