Re: [INTERFACES] JDBC compile error

From: Pap Tibor <papt(at)edasz(dot)hu>
To: Peter T Mount <peter(at)retep(dot)org(dot)uk>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] JDBC compile error
Date: 1998-07-27 08:08:54
Message-ID: 19980727100854.45960@op.edasz.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Thu, Jul 23, 1998 at 06:44:17PM +0100, Peter T Mount wrote:
> # unset CLASSPATH
>
> then run make. These errors are caused by javac getting confused by both
> the postgresql and java.sql packages
>
> This is covered in the README and in the faq
>
Yes, I have read the README, but:

papipc# unset CLASSPATH
papipc# echo $CLASSPATH

papipc#
papipc# make

postgresql/CallableStatement.java:213: Method redefined with different
return type: postgresql.BigDecimal getBigDecimal(int, int) was
java.math.BigDecimal
getBigDecimal(int, int)
public BigDecimal getBigDecimal(int parameterIndex, int scale)
^
./postgresql/PreparedStatement.java:0: Class java.math.BigDecimal not
found in type declaration.
package postgresql;
^
./postgresql/PreparedStatement.java:27: class postgresql.PreparedStatement
must be declared abstract. It does not define void setBigDecimal(int,
java.math.BigDecimal) from interface java.sql.PreparedStatement.
public class PreparedStatement extends Statement implements
java.sql.PreparedStatement

[...]

./postgresql/DatabaseMetaData.java:2058: class postgresql.ResultSet is an
abstract class. It can't be instantiated.
return new ResultSet(connection, f, v, "OK", 1);
^
./postgresql/DatabaseMetaData.java:2433: class postgresql.ResultSet is an
abstract class. It can't be instantiated.
return new ResultSet(connection, f, v, "OK", 1);
^
21 errors
make: *** [postgresql/CallableStatement.class] Error 1

So, I got the same errors!

--Tibor

--
---------.Sig--------
Tibor Pap <papt(at)edasz(dot)hu>
---------------------

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Sergei Barbarash 1998-07-27 09:02:29 Translation DLL for ODBC
Previous Message Michael Yeung 1998-07-27 07:57:07 Problem of using Access '97 to open db