Re: [INTERFACES] compiling jdbc with JDK 1.1.3 - Mailing list pgsql-interfaces

From Peter T Mount
Subject Re: [INTERFACES] compiling jdbc with JDK 1.1.3
Date
Msg-id Pine.LNX.3.96.980801235242.1201C-100000@maidast.retep.org.uk
Whole thread Raw
In response to compiling jdbc with JDK 1.1.3  (Bartlomiej Papierski <bartek@amg.net.pl>)
List pgsql-interfaces
On Sat, 1 Aug 1998, Bartlomiej Papierski wrote:

> Hello,
>
> I'm novice in java programming, but advanced in PostreSQL.
>
> I get the following error while compiling jdbc source:
>
> javac postgresql/CallableStatement.java
> postgresql/CallableStatement.java:37: Can't subclass interfaces: interface
> java.sql.PreparedStatement
> public class CallableStatement extends PreparedStatement implements
> java.sql.CallableStatement
>                                        ^
> Do you have any ideas how to solve this problem?

Try removing the CLASSPATH, ie:

[postgres@maidast pgsql]$ unset CLASSPATH
[postgres@maidast pgsql]$ make

That should work.

The problem's caused by javac getting confused with the class names being
identical to the classes in the java.sql package.

--
Peter T Mount peter@retep.org.uk or petermount@earthling.net
Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres


pgsql-interfaces by date:

Previous
From: Edmund Mergl
Date:
Subject: DBD::Pg for postgresql.snapshot
Next
From: David Hartwig
Date:
Subject: Re: [INTERFACES] psqlodbc