On Fri, 30 Jul 1999, ALPESH KOTHARI wrote:
Sorry for the delay in replying, but my Inbox is a tad full...
> I am using Postgresql-6.4.3-2. I want to use JDBC. so as a first point
> i need postgres.jar file.
> when i execute the commands as follows it gives the error as follows:
>
> #cd /usr/src/pgsql/src/interfaces/jdbc
> #make all
> 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
> ^
> Note: postgresql/CallableStatement.java uses or overrides a deprecated
> API. Recompile with "-deprecation" for details.
> 1 error, 1 warning
> make: *** [postgresql/CallableStatement.class] Error 1
>
>
> If any one of you have came across this error please help me.
This is in the PostgreSQL JDBC FAQ. Try:
unset CLASSPATH
make
You should find it will work now. The problem is caused by javac finding
both the java.sql.* classes as well as the driver's classes.
Peter
--
Peter T Mount [EMAIL PROTECTED]
Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres
Java PDF Generator: http://www.retep.org.uk/pdf
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]