Thread: JDBC 7.1.2 compilation failed
After ./configure --with-java compilation (gmake) for 7.1.2 on RH 7.1 box failed with this error: [javac] /tmp/postgresql-7.1.2/src/interfaces/jdbc/example/blobtest.java:189: Class example.Blob not found in type declaration. [javac] Blob b = rs.getBlob("a"); [javac] ^ [javac] /tmp/postgresql-7.1.2/src/interfaces/jdbc/example/blobtest.java:189: Method getBlob(java.lang.String) not found in interface java.sql.ResultSet. [javac] Blob b = rs.getBlob("a"); [javac] ^ [javac] 2 errors Thanks for reading this. Regards, lwd.
the same error already existed with 7.1.1, jdbc1 mark rosa -- ------------------------------------------------------------- Mark Rosa - Dipl. Arch. ETH Etekt Inc. co-create your home phone: ++41-1-4462-406 www: http://www.etekt.com mobile: ++41-76-390 06 37 fax: ++49-89-244 35 64 08 email: rosa@etekt.com www: http://www.yourcell.net/rosa ------------------------------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confi- dential and/or privileged material. Any review, retrans- mission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
I have built this without any trouble on RH7.0 binary is available at http://jdbc.fastcrypt.com The fact that the error is with the Class Blob suggests that you may not have the classpath set properly. Blob is a class which was introduced in jdk1.2. Which jdk are you using? Dave ----- Original Message ----- From: "Laurentiu Drob" <lwd@cfrcta.ro> To: <pgsql-jdbc@postgresql.org> Sent: Tuesday, May 29, 2001 6:26 AM Subject: [JDBC] JDBC 7.1.2 compilation failed > After ./configure --with-java compilation (gmake) for 7.1.2 on RH 7.1 > box failed with this error: > > [javac] > /tmp/postgresql-7.1.2/src/interfaces/jdbc/example/blobtest.java:189: > Class example.Blob not found in type declaration. > [javac] Blob b = rs.getBlob("a"); > [javac] ^ > [javac] > /tmp/postgresql-7.1.2/src/interfaces/jdbc/example/blobtest.java:189: > Method getBlob(java.lang.String) not found in interface > java.sql.ResultSet. > [javac] Blob b = rs.getBlob("a"); > [javac] ^ > [javac] 2 errors > > Thanks for reading this. > > Regards, > lwd. > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster >
probably he is also using jdbc1 as i have tried to. this is a postgresql-jdbc bug, because it should not try to use any classes that were introduced only in jdk1.2 when one is using an older jdk, like my jdk1.1.8 on SGI IRIX. ciao, mark -- ------------------------------------------------------------- Mark Rosa - Dipl. Arch. ETH Etekt Inc. co-create your home phone: ++41-1-4462-406 www: http://www.etekt.com mobile: ++41-76-390 06 37 fax: ++49-89-244 35 64 08 email: rosa@etekt.com www: http://www.yourcell.net/rosa ------------------------------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confi- dential and/or privileged material. Any review, retrans- mission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
Mark, This should work fine. I compile three versions on the same machine, using jdk1.18, jdk1.2, jdk1.3. The build.xml file deals with the 1.1x issues. Bruce has done some work on the build.xml file. Perhaps this has not been updated in the tarball? ---dc-- ----- Original Message ----- From: "Mark Rosa" <rosa@etekt.com> To: "Dave Cramer" <Dave@micro-automation.net> Cc: "Laurentiu Drob" <lwd@cfrcta.ro>; <pgsql-jdbc@postgresql.org> Sent: Tuesday, May 29, 2001 9:24 AM Subject: Re: [JDBC] JDBC 7.1.2 compilation failed > probably he is also using jdbc1 as i have tried to. > this is a postgresql-jdbc bug, because it should not try to use any > classes that were introduced only in jdk1.2 when one is using an older > jdk, like my jdk1.1.8 on SGI IRIX. > > ciao, > mark > -- > ------------------------------------------------------------- > Mark Rosa - Dipl. Arch. ETH > Etekt Inc. co-create your home > phone: ++41-1-4462-406 www: http://www.etekt.com > mobile: ++41-76-390 06 37 fax: ++49-89-244 35 64 08 > email: rosa@etekt.com www: http://www.yourcell.net/rosa > ------------------------------------------------------------- > > The information transmitted is intended only for the person > or entity to which it is addressed and may contain confi- > dential and/or privileged material. Any review, retrans- > mission, dissemination or other use of, or taking of any > action in reliance upon, this information by persons or > entities other than the intended recipient is prohibited. > If you received this in error, please contact the sender and > delete the material from any computer. > >
I'm getting this same error here when I try to compile it with JDK1.18. I also get the following error when trying to compile with JDK1.3: Unable to initialize threads: cannot find class java/lang/Thread Does anyone know what's causing this? -- Jeremy [jeremy@wellsgaming.com] > I have built this without any trouble on RH7.0 > > binary is available at http://jdbc.fastcrypt.com > > The fact that the error is with the Class Blob suggests that you may not > have the classpath set properly. Blob is a class which was introduced in > jdk1.2. Which jdk are you using? > > Dave > > ----- Original Message ----- > From: "Laurentiu Drob" <lwd@cfrcta.ro> > To: <pgsql-jdbc@postgresql.org> > Sent: Tuesday, May 29, 2001 6:26 AM > Subject: [JDBC] JDBC 7.1.2 compilation failed > > >> After ./configure --with-java compilation (gmake) for 7.1.2 on RH 7.1 >> box failed with this error: >> >> [javac] >> /tmp/postgresql-7.1.2/src/interfaces/jdbc/example/blobtest.java:189: >> Class example.Blob not found in type declaration. >> [javac] Blob b = rs.getBlob("a"); >> [javac] ^ >> [javac] >> /tmp/postgresql-7.1.2/src/interfaces/jdbc/example/blobtest.java:189: >> Method getBlob(java.lang.String) not found in interface >> java.sql.ResultSet. >> [javac] Blob b = rs.getBlob("a"); >> [javac] ^ >> [javac] 2 errors >> >> Thanks for reading this. >> >> Regards, >> lwd.
> Mark, > > This should work fine. I compile three versions on the same machine, using > jdk1.18, jdk1.2, jdk1.3. The build.xml file deals with the 1.1x issues. > > Bruce has done some work on the build.xml file. Perhaps this has not been > updated in the tarball? None of my jdbc changes are in 7.1.X, only CVS. The only fix in 7.1.1&2 was the compile failure in jdbc1 for wrong parentheses. Thomas also applied a timezone fix for jdbc2. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Dave Cramer wrote: > > Which jdk are you using? > > Dave > Sorry for uncompleted information. I use jdk 1.1.7_v3 from blackdown and CAN'T CHANGE this [java version I mean]. Best regards, lwd.