From: | MTArgent(at)silverfe(dot)demon(dot)co(dot)uk (M(dot) T(dot) Argent) |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Compiling postgres to is jdbc |
Date: | 2002-06-09 15:19:58 |
Message-ID: | 20020609.161958.20@silverfe.silverfe.demon.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Jessica P. Hekman | 2002-06-09 16:14:28 | Re: implementing query timeout |
Previous Message | Jason Davies | 2002-06-09 00:10:30 | Patch for ResultSetMetaData.getColumnClassName(), ResultSet.getObject() |