pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
problem compiling the jdbc driver
5+ messages / 5 participants
[nested] [flat]

* problem compiling the jdbc driver
@ 1998-05-02 15:00  zorll@tu-harburg.d400.de
  0 siblings, 0 replies; 5+ messages in thread

From: zorll@tu-harburg.d400.de @ 1998-05-02 15:00 UTC (permalink / raw)
  To: pgsql-interfaces

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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [INTERFACES] problem compiling the jdbc driver
@ 1998-06-15 17:37  rrr <llestat@ibm.net>
  0 siblings, 0 replies; 5+ messages in thread

From: rrr @ 1998-06-15 17:37 UTC (permalink / raw)
  To: pgsql-interfaces; zorll@tu-harburg.d400.de <zorll@tu-harburg.d400.de>

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
>
>





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* problem compiling the jdbc driver
@ 2001-03-21 05:29  Silky Mittal <silky212001@yahoo.com>
  0 siblings, 2 replies; 5+ messages in thread

From: Silky Mittal @ 2001-03-21 05:29 UTC (permalink / raw)
  To: pgsql-interfaces


 Dear Sir,
   i am using postgresql 6.5.3 on red hat 6.2...
   i downloaded j2sdk-1_3_0_02-linux-rpm.bin from
 java.sun.com and stored it in my root directory with
 the same name.
   i have jdbc6.5-1.2.jar and
          jdbc6.5-1.1.jar in /usr/lib/pgsql
 directory.
   i use following code for the driver in my java
 application:
   Class.forName("org.postgresql.Driver")
    it compiles fine but when i give java filename it
 gives the following error:
   

java.lang.ClassNotFoundException:org/postgresql/Driver
  then i included the name of jar file in my
  classpath with the command
  export CLASSPATH=.:/usr/lib/pgsql/jdbc6.5-1.2.jar
  it still gives the same problem........
  then i tried to compile the driver using the
  command
  make jdbc2
   but it gives the following error:
   make:**No rule to make target jdbc2 Stop
   also my system has no file called postgresql.jar.
   please tell me what to do.
   Thanks
   help will be appreciated
   Silky 
     


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: problem compiling the jdbc driver
@ 2001-03-21 22:06  Peter Eisentraut <peter_e@gmx.net>
  parent: Silky Mittal <silky212001@yahoo.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Peter Eisentraut @ 2001-03-21 22:06 UTC (permalink / raw)
  To: Silky Mittal <silky212001@yahoo.com>; +Cc: pgsql-interfaces

Silky Mittal writes:

>    i am using postgresql 6.5.3 on red hat 6.2...

Time to upgrade.

>    Class.forName("org.postgresql.Driver")

Back then it was just "postgresql.Driver".

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: problem compiling the jdbc driver
@ 2001-03-22 14:18  Peter T Mount <peter@retep.org.uk>
  parent: Silky Mittal <silky212001@yahoo.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Peter T Mount @ 2001-03-22 14:18 UTC (permalink / raw)
  To: Silky Mittal <silky212001@yahoo.com>; +Cc: pgsql-interfaces

Quoting Silky Mittal <silky212001@yahoo.com>:

> 
>  Dear Sir,
>    i am using postgresql 6.5.3 on red hat 6.2...
>    i downloaded j2sdk-1_3_0_02-linux-rpm.bin from
>  java.sun.com and stored it in my root directory with
>  the same name.
>    i have jdbc6.5-1.2.jar and
>           jdbc6.5-1.1.jar in /usr/lib/pgsql
>  directory.
>    i use following code for the driver in my java
>  application:
>    Class.forName("org.postgresql.Driver")
>     it compiles fine but when i give java filename it
>  gives the following error:
>    
> 
> java.lang.ClassNotFoundException:org/postgresql/Driver

Yep. "org.postgresql.Driver" only came in with 7.0. For anything earlier drop 
the org. part of the package.

Peter

-- 
Peter Mount peter@retep.org.uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2001-03-22 14:18 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1998-05-02 15:00 problem compiling the jdbc driver zorll@tu-harburg.d400.de
1998-06-15 17:37 Re: [INTERFACES] problem compiling the jdbc driver rrr <llestat@ibm.net>
2001-03-21 05:29 problem compiling the jdbc driver Silky Mittal <silky212001@yahoo.com>
2001-03-21 22:06 ` Peter Eisentraut <peter_e@gmx.net>
2001-03-22 14:18 ` Peter T Mount <peter@retep.org.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