pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rrr <llestat@ibm.net>
To: pgsql-interfaces@postgreSQL.org <pgsql-interfaces@postgreSQL.org>
To: zorll@tu-harburg.d400.de <zorll@tu-harburg.d400.de>
Subject: Re: [INTERFACES] problem compiling the jdbc driver
Date: Mon, 15 Jun 98 22:37:56 +0500
Message-ID: <199806160236.CAA60838@out5.ibm.net> (raw)

Had the same problem with the same kernel and Java version 1.1.5v6. I finally ended up downloading the 
1.1.3 JDK and it compiled fine.  I have the suspicion that the reason I was getting the Big Decimal error was 
because of the version of ldso and libc5 I was running but I didn't feel like testing this. Everthing has worked 
fine using the 1.1.3 version of Java even the Large Object image application.

- Richard


On Sat, 2 May 1998 15:00:53 +0000, zorll@tu-harburg.d400.de wrote:

>Hello,
>
>I have a problem with compiling the sources of the JDBC driver on my
>Linux system. Simply changing to the directory "src/interfaces/jdbc"
>of the PostgreSQL-v6.3.2 sources and typing 'make' didn't do the job.
>It showed some of the following error messages:
>
>    javac postgresql/CallableStatement.java
>    postgresql/CallableStatement.java:213: Method redefined with
>    different return type: postgresql.BigDecimal 
>         getBigDecimal(int, int) was java.math.BigDecimal
>         getBigDecimal(int, int) public BigDecimal getBigDecimal(int
>         parameterIndex, int scale)                    
>
>    ./postgresql/PreparedStatement.java:0: Class java.math.BigDecimal
>    not found in type declaration.
>         package postgresql;
>
>    ./postgresql/PreparedStatement.java:27: class
>    postgresql.PreparedStatement must be declared abstract. 
>         It does not define void setBigDecimal(int,
>         java.math.BigDecimal) from interface
>         java.sql.PreparedStatement. public class PreparedStatement
>         extends Statement implements java.sql.PreparedStatement      
>                
>
>     ./postgresql/PreparedStatement.java:239: Class
>     postgresql.BigDecimal not found in type declaration.
>         public void setBigDecimal(int parameterIndex, BigDecimal x)
>         throws SQLException
>
>     ./postgresql/PreparedStatement.java:241: Class
>          postgresql.BigDecimal not found in   void 
>setBigDecimal(int, postgresql.BigDecimal).         
>set(parameterIndex, x.toString());     
>
>
>I read the warning in the README file in the jdbc directory, that to
>compile the driver sources, you first have to make sure, that the
>current directory is in CLASSPATH. As proposed in the README I unset
>CLASSPATH with the command 'export CLASSPATH='. But it produced the
>same errors as described above. I tried several other variations like
>'export CLASSPATH=.:/usr/lib/jdk1.1.5/lib/classes.zip' with the same
>negative results.
>
>Probably the reason for this problem is, that some settings of my jdk
>installation are not correct. But after several hours of fruitless
>experiments and looking for any hints in documention concerning the
>jdbc driver, the only chance to get the driver compiled on my box is
>to look for help in this list. 
>
>I have installed the jdk 1.1.5v6 (port from Steve Byrne) on my system
>and I haven't experienced any other problems with it so far. The
>kernel version is 2.0.29 and my GNU make is version 3.75 
>
>Any hints on what I might have done wrong that everybody else is
>obviously doing right would be greatly appreciated.  
>
>Thanks in advance
>
>Ralph
>
>





view thread (5+ messages)  latest in thread

Message-ID: <199806160236.CAA60838@out5.ibm.net>
Permalink:  ../199806160236.CAA60838@out5.ibm.net/
Also on:    postgresql.org/message-id/199806160236.CAA60838@out5.ibm.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: llestat@ibm.net, zorll@tu-harburg.d400.de
  Subject: Re: [INTERFACES] problem compiling the jdbc driver
  In-Reply-To: <199806160236.CAA60838@out5.ibm.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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