pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedCompiling jdbc for Linux and Solaris
4+ messages / 2 participants
[nested] [flat]
* Compiling jdbc for Linux and Solaris
@ 1999-04-20 13:55 Kent Perrier <kent.perrier@pgs.com>
0 siblings, 0 replies; 4+ messages in thread
From: Kent Perrier @ 1999-04-20 13:55 UTC (permalink / raw)
To: pgsql-interfaces@hub.org
I am attempting to compile the jdbc interface for postgresql 6.4.2 on
Solaris (using jsdk 2, aka jdk 1.2) or linux (using the blackdown
jdk1.2). I have postgresql installed on both machines. Here is a
representation of the errors I am getting for each platform:
Linux:
[postgres:/usr/local/src/postgresql-6.4.2/src/interfaces/jdbc]$ make
javac postgresql/CallableStatement.java
postgresql/CallableStatement.java:37: class postgresql.CallableStatement
must be declared abstract. It does not define void setClob(int,
java.sql.Clob) from interface java.sql.PreparedStatement.
public class CallableStatement extends PreparedStatement implements
java.sql.CallableStatement
^
Solaris 2.6:
[/export/home/postgres/jdbc]$ make
javac postgresql/CallableStatement.java
postgresql/CallableStatement.java:37: class postgresql.CallableStatement
must be declared abstract. It does not define java.sql.Time getTime(int,
java.util.Calendar) from interface java.sql.CallableStatement.
public class CallableStatement extends PreparedStatement implements
java.sql.CallableStatement
^
Has anyone else been able to get this compiled? If so, can you help me
out (or send me your bytecompiled jdbc drivers)?
Kent
--
work hard, save aggressively, invest well and get the hell out
^ permalink raw reply [nested|flat] 4+ messages in thread
* RE: [INTERFACES] Compiling jdbc for Linux and Solaris
@ 1999-04-20 14:18 Peter Mount <petermount@it.maidstone.gov.uk>
1999-04-20 14:38 ` Re: [INTERFACES] Compiling jdbc for Linux and Solaris Kent Perrier <kent.perrier@pgs.com>
0 siblings, 1 reply; 4+ messages in thread
From: Peter Mount @ 1999-04-20 14:18 UTC (permalink / raw)
To: Kent Perrier <kent.perrier@pgs.com>; pgsql-interfaces@hub.org
These are both in the FAQ. Try unsetting your CLASSPATH, then run make.
FAQ & Pre-compiled drivers are on my web site:
http://www.retep.org.uk/postgres/
Peter
--
Peter T Mount, IT Section
petermount@it.maidstone.gov.uk
Anything I write here are my own views, and cannot be taken as the
official words of Maidstone Borough Council
-----Original Message-----
From: Kent Perrier [mailto:kent.perrier@pgs.com]
Sent: Tuesday, April 20, 1999 2:55 PM
To: pgsql-interfaces@hub.org
Subject: [INTERFACES] Compiling jdbc for Linux and Solaris
I am attempting to compile the jdbc interface for postgresql 6.4.2 on
Solaris (using jsdk 2, aka jdk 1.2) or linux (using the blackdown
jdk1.2). I have postgresql installed on both machines. Here is a
representation of the errors I am getting for each platform:
Linux:
[postgres:/usr/local/src/postgresql-6.4.2/src/interfaces/jdbc]$ make
javac postgresql/CallableStatement.java
postgresql/CallableStatement.java:37: class postgresql.CallableStatement
must be declared abstract. It does not define void setClob(int,
java.sql.Clob) from interface java.sql.PreparedStatement.
public class CallableStatement extends PreparedStatement implements
java.sql.CallableStatement
^
Solaris 2.6:
[/export/home/postgres/jdbc]$ make
javac postgresql/CallableStatement.java
postgresql/CallableStatement.java:37: class postgresql.CallableStatement
must be declared abstract. It does not define java.sql.Time getTime(int,
java.util.Calendar) from interface java.sql.CallableStatement.
public class CallableStatement extends PreparedStatement implements
java.sql.CallableStatement
^
Has anyone else been able to get this compiled? If so, can you help me
out (or send me your bytecompiled jdbc drivers)?
Kent
--
work hard, save aggressively, invest well and get the hell out
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: [INTERFACES] Compiling jdbc for Linux and Solaris
1999-04-20 14:18 RE: [INTERFACES] Compiling jdbc for Linux and Solaris Peter Mount <petermount@it.maidstone.gov.uk>
@ 1999-04-20 14:38 ` Kent Perrier <kent.perrier@pgs.com>
0 siblings, 0 replies; 4+ messages in thread
From: Kent Perrier @ 1999-04-20 14:38 UTC (permalink / raw)
To: pgsql-interfaces@hub.org
Peter Mount wrote:
>
> These are both in the FAQ. Try unsetting your CLASSPATH, then run make.
Many thanks. I attempted this and this failed as well with the error:
[postgres:/usr/local/src/postgresql-6.4.2/src/interfaces/jdbc]$ make
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
[postgres:/usr/local/src/postgresql-6.4.2/src/interfaces/jdbc]$ echo
$CLASSPATH
[postgres:/usr/local/src/postgresql-6.4.2/src/interfaces/jdbc]$
>
> FAQ & Pre-compiled drivers are on my web site:
> http://www.retep.org.uk/postgres/
The url listed in the readme file with my distribution lists a different
url. One that I cannot get to as it doesn't exist. Perhaps if the
readme was correct I would have found your FAQ and precompiled drives
before I asked the question here.
Kent
--
work hard, save aggressively, invest well and get the hell out
^ permalink raw reply [nested|flat] 4+ messages in thread
* RE: [INTERFACES] Compiling jdbc for Linux and Solaris
@ 1999-04-20 15:05 Peter Mount <petermount@it.maidstone.gov.uk>
0 siblings, 0 replies; 4+ messages in thread
From: Peter Mount @ 1999-04-20 15:05 UTC (permalink / raw)
To: Kent Perrier <kent.perrier@pgs.com>; pgsql-interfaces@hub.org
It may be the old www.demon.co.uk/finder/postgres one, which ceased to
exist a year ago when I created the retep.org.uk domain. I thought I had
picked up all traces of them when 6.4 came out (while I was doing the
docs).
when unsetting CLASSPATH, make sure it's empty, no . nor the location of
classes.zip (it's the latter that's usually the culprit here). The
java_wrapper script adds the jdk classes automatically.
--
Peter T Mount, IT Section
petermount@it.maidstone.gov.uk
Anything I write here are my own views, and cannot be taken as the
official words of Maidstone Borough Council
-----Original Message-----
From: Kent Perrier [mailto:kent.perrier@pgs.com]
Sent: Tuesday, April 20, 1999 3:38 PM
To: pgsql-interfaces@hub.org
Subject: Re: [INTERFACES] Compiling jdbc for Linux and Solaris
Peter Mount wrote:
>
> These are both in the FAQ. Try unsetting your CLASSPATH, then run
make.
Many thanks. I attempted this and this failed as well with the error:
[postgres:/usr/local/src/postgresql-6.4.2/src/interfaces/jdbc]$ make
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
[postgres:/usr/local/src/postgresql-6.4.2/src/interfaces/jdbc]$ echo
$CLASSPATH
[postgres:/usr/local/src/postgresql-6.4.2/src/interfaces/jdbc]$
>
> FAQ & Pre-compiled drivers are on my web site:
> http://www.retep.org.uk/postgres/
The url listed in the readme file with my distribution lists a different
url. One that I cannot get to as it doesn't exist. Perhaps if the
readme was correct I would have found your FAQ and precompiled drives
before I asked the question here.
Kent
--
work hard, save aggressively, invest well and get the hell out
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~1999-04-20 15:05 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-04-20 13:55 Compiling jdbc for Linux and Solaris Kent Perrier <kent.perrier@pgs.com>
1999-04-20 14:18 RE: [INTERFACES] Compiling jdbc for Linux and Solaris Peter Mount <petermount@it.maidstone.gov.uk>
1999-04-20 14:38 ` Kent Perrier <kent.perrier@pgs.com>
1999-04-20 15:05 RE: [INTERFACES] Compiling jdbc for Linux and Solaris Peter Mount <petermount@it.maidstone.gov.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox