compiling jdbc with JDK 1.1.3
compiling jdbc with JDK 1.1.3
От:
Bartlomiej Papierski <bartek@amg.net.pl>
Дата:
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?
Thanks in advance.
//// Bartlomiej Papierski - AMG:net
//// bartek@amg.net.pl
//// http://www.amg.net.pl
Re: [INTERFACES] compiling jdbc with JDK 1.1.3
От:
Peter T Mount <peter@retep.org.uk>
Дата:
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