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