Re: Unable complie jdbc - Mailing list pgsql-jdbc

From Robert Finneran
Subject Re: Unable complie jdbc
Date
Msg-id DHEBLGHGGMKGDPIEFJAIIEGPDHAA.rob@digitalskyscrapers.com
Whole thread Raw
In response to Unable complie jdbc  (Vernon Wu <vernonw@gatewaytech.com>)
List pgsql-jdbc
-----Original Message-----
From: Robert Finneran [mailto:rob@digitalskyscrapers.com]
Sent: Thursday, January 03, 2002 6:31 PM
To: Barry Lind
Subject: RE: [JDBC] Unable complie jdbc


Barry and Listees,

I took your advice and downloaded jdbc7.1-1.2.jar from jdbc.postgresql.org.

Is this file up-to-date? I mean the filename and the web site were not real
clear on the last time this was built. Maybe I missed something?

Anyhow, I'm running the JBoss/Jetty combo with it and seems to be okay.

Thanks Very Much.

Rob





-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Barry Lind
Sent: Thursday, January 03, 2002 10:55 AM
To: Robert Finneran
Cc: vernonw@gatewaytech.com; pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Unable complie jdbc


Robert,

As Dave has already mentioned in his response, due to the changes in the
jdbc interfaces in 1.4, you will not be able to compile using a 1.4 jdk.
  However, you can use the prebuilt jar files from jdbc.postgresql.org
built under 1.2/1.3 and use these in a 1.4 environment.  (The only issue
will be if you try to use one of the new methods introduced in 1.4).

thanks,
--Barry



Robert Finneran wrote:

> I'm using Ant 1.4.1, PostgreSQL 7.1.3 source, Sun jdk1.4.0 beta 3
> and I'm getting the same error messages (and more).
>
> Then happens when try to build it from the top level or the interfaces
> either using:
> $./configure --with-java
> and then:
> $gmake
> or using:
> $ant
>
> Can anyone point me in the right direction?
>
> Here's the errors I recieved when building with Ant:
>
> *******************************************
> *******************************************
> *******************************************
>
> Buildfile: build.xml
>
> jar:
>
> call:
>
> prepare:
>
> check_versions:
>
> driver:
>      [echo] Configured build for the JDBC2 Enterprise edition driver.
>
> compile:
>     [javac] Compiling 47 source files to
> /usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/build
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Driver.ja
> va:199: ';' expected
>     [javac]     return ${major};
>     [javac]             ^
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Driver.ja
> va:209: ';' expected
>     [javac]     return ${minor};
>     [javac]             ^
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/xa/XAConn
> ectionImpl.java:57: cannot resolve symbol
>     [javac] symbol  : class RollbackException
>     [javac] location: package transaction
>     [javac] import javax.transaction.RollbackException;
>     [javac]                          ^
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Driver.ja
> va:199: cannot resolve symbol
>     [javac] symbol  : variable $
>     [javac] location: class org.postgresql.Driver
>     [javac]     return ${major};
>     [javac]            ^
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Driver.ja
> va:209: cannot resolve symbol
>     [javac] symbol  : variable $
>     [javac] location: class org.postgresql.Driver
>     [javac]     return ${minor};
>     [javac]            ^
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/xa/Client
> Connection.java:70: org.postgresql.xa.ClientConnection should be declared
> abstract; it does not define setHoldability(int) in
> org.postgresql.xa.ClientConnection
>     [javac] final class ClientConnection
>     [javac]       ^
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/Sta
> tement.java:25: org.postgresql.jdbc2.Statement should be declared
abstract;
> it does not define getMoreResults(int) in org.postgresql.jdbc2.Statement
>     [javac] public class Statement extends org.postgresql.Statement
> implements java.sql.Statement
>     [javac]        ^
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/Pre
> paredStatement.java:32: org.postgresql.jdbc2.PreparedStatement should be
> declared abstract; it does not define setURL(int,java.net.URL) in
> org.postgresql.jdbc2.PreparedStatement
>     [javac] public class PreparedStatement extends Statement implements
> java.sql.PreparedStatement
>     [javac]        ^
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/Cal
> lableStatement.java:42: org.postgresql.jdbc2.CallableStatement should be
> declared abstract; it does not define
> registerOutParameter(java.lang.String,int) in
> org.postgresql.jdbc2.CallableStatement
>     [javac] public class CallableStatement extends
> org.postgresql.jdbc2.PreparedStatement implements
java.sql.CallableStatement
>     [javac]        ^
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/Con
> nection.java:37: org.postgresql.jdbc2.Connection should be declared
> abstract; it does not define setHoldability(int) in
> org.postgresql.jdbc2.Connection
>     [javac] public class Connection extends org.postgresql.Connection
> implements java.sql.Connection
>     [javac]        ^
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/Dat
> abaseMetaData.java:35: org.postgresql.jdbc2.DatabaseMetaData should be
> declared abstract; it does not define supportsSavepoints() in
> org.postgresql.jdbc2.DatabaseMetaData
>     [javac] public class DatabaseMetaData implements
> java.sql.DatabaseMetaData
>     [javac]        ^
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/Res
> ultSet.java:60: org.postgresql.jdbc2.ResultSet should be declared
abstract;
> it does not define getURL(int) in org.postgresql.jdbc2.ResultSet
>     [javac] public class ResultSet extends org.postgresql.ResultSet
> implements java.sql.ResultSet
>     [javac]        ^
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/largeobje
> ct/PGblob.java:26: org.postgresql.largeobject.PGblob should be declared
> abstract; it does not define setBytes(long,byte[]) in
> org.postgresql.largeobject.PGblob
>     [javac] public class PGblob implements java.sql.Blob
>     [javac]        ^
>     [javac]
>
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/largeobje
> ct/PGclob.java:26: org.postgresql.largeobject.PGclob should be declared
> abstract; it does not define setString(long,java.lang.String) in
> org.postgresql.largeobject.PGclob
>     [javac] public class PGclob implements java.sql.Clob
>     [javac]        ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -deprecation for details.
>     [javac] 14 errors
>
> BUILD FAILED
>
> /usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/build.xml:99: Compile
> failed, messages should have been provided.
>
> Total time: 6 seconds
>
> *******************************************
> *******************************************
> *******************************************
>
>
> -----Original Message-----
> From: pgsql-jdbc-owner@postgresql.org
> [mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Dave Cramer
> Sent: Saturday, December 29, 2001 2:32 PM
> To: vernonw@gatewaytech.com; pgsql-jdbc@postgresql.org
> Subject: Re: [JDBC] Unable complie jdbc
>
>
> You need to use ant
>
> http://jakarta.apache.org/ant
>
> Dave
>
> -----Original Message-----
> From: pgsql-jdbc-owner@postgresql.org
> [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Vernon Wu
> Sent: Friday, December 28, 2001 11:59 PM
> To: pgsql-jdbc@postgresql.org
> Subject: [JDBC] Unable complie jdbc
>
>
>
> Hi,
>
> I am very new to PostgreSQL, only a few hours. I follow the instruction
> on
> http://jdbc.postgresql.org/doc.html to build jdbc. The build process
> fails due to the
> ${major} and ${minor} in the Driver.java file. They are not Java syntax.
> Do I need to
> replace them with two intergers? If yes, what they are?
>
> Thanks in advance.
>
> v.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
>



---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org


pgsql-jdbc by date:

Previous
From: Rene Pijlman
Date:
Subject: Re: JDBC 3.0 / JDK 1.4 build issues
Next
From: Barry Lind
Date:
Subject: Re: Data corruption with BYTEA and SQL_ASCII encoding