Re: [INTERFACES] compiling jdbc with JDK 1.1.3

Поиск
Список
Период
Сортировка
От Peter T Mount
Тема Re: [INTERFACES] compiling jdbc with JDK 1.1.3
Дата
Msg-id Pine.LNX.3.96.980801235242.1201C-100000@maidast.retep.org.uk
обсуждение исходный текст
Ответ на compiling jdbc with JDK 1.1.3  (Bartlomiej Papierski <bartek@amg.net.pl>)
Список 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 по дате отправления:

Предыдущее
От: Edmund Mergl
Дата:
Сообщение: DBD::Pg for postgresql.snapshot
Следующее
От: David Hartwig
Дата:
Сообщение: Re: [INTERFACES] psqlodbc