Received: from out5.ibm.net (out5.ibm.net [165.87.194.245]) by hub.org (8.8.8/8.7.5) with ESMTP id WAA17261 for ; Mon, 15 Jun 1998 22:36:50 -0400 (EDT) Received: from WARP (slip-32-100-133-132.fl.us.ibm.net [32.100.133.132]) by out5.ibm.net (8.8.5/8.6.9) with SMTP id CAA60838; Tue, 16 Jun 1998 02:36:47 GMT Message-Id: <199806160236.CAA60838@out5.ibm.net> From: "rrr" To: "pgsql-interfaces@postgreSQL.org" , "zorll@tu-harburg.d400.de" Date: Mon, 15 Jun 98 22:37:56 +0500 Reply-To: "rrr" Priority: Normal X-Mailer: PMMail 1.92 For OS/2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: [INTERFACES] problem compiling the jdbc driver 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 > >