Thread: FW: Errors when building jdbc dirver jar file

FW: Errors when building jdbc dirver jar file

From
Grant Edwards
Date:

>  -----Original Message-----
> From:     Grant Edwards
> Sent:    02 October 2001 12:44
> To:    'pgsql-jdbc@postgresql.org'
> Cc:    'grant.edwards@btinternet.com'
> Subject:    Errors when building jdbc dirver jar file
>
> Hi,
>
> Need a bit of help please, some config stuff first followed by the error.
> Any info will be greatly appreciated emails can be sent to
> grant.edwards@btinternet.com or gedwards@lastminute.com
>
> Regards
>
> Grant Edwards
>
>
> *    postgresql-7.1.3
>
> *    java version "1.3.0_01"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
> Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)
>
> *    Ant version 1.3 compiled on March 2 2001
>
> *    uname -a      ------>     Linux eve 2.2.16 #1 Wed Aug 2 20:22:26 GMT
> 2000 i686 unknown
>
> *    JAVA_HOME=/usr/local/jdk1.3.0_01
>
>
> And now for the error :
>
> eve-/usr/local/postgresql-7.1.3> ant
> Buildfile: build.xml
>
> jar:
>
> call:
>
> prepare:
>
> check_versions:
>
> driver:
>      [echo] Configured build for the JDBC2 edition driver.
>
> compile:
>     [javac] Compiling 52 source files to
> /usr/local/postgresql-7.1.3/src/interfaces/jdbc/build
>     [javac]
> /usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Driver.java
> :199: ';' expected
>     [javac]     return ${major};
>     [javac]             ^
>     [javac]
> /usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Driver.java
> :209: ';' expected
>     [javac]     return ${minor};
>     [javac]             ^
>     [javac]
> /usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Driver.java
> :199: cannot resolve symbol
>     [javac] symbol  : variable $
>     [javac] location: class org.postgresql.Driver
>     [javac]     return ${major};
>     [javac]            ^
>     [javac]
> /usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Driver.java
> :209: cannot resolve symbol
>     [javac] symbol  : variable $
>     [javac] location: class org.postgresql.Driver
>     [javac]     return ${minor};
>     [javac]            ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -deprecation for details.
>     [javac] 4 errors
>
> BUILD FAILED
>
> /usr/local/postgresql-7.1.3/src/interfaces/jdbc/build.xml:99: Compile
> failed, messages should have been provided.
>
> Total time: 8 seconds
>
>         App Developer / Informix DBA
>         address: 4 Buckingham Gate, London SW1E 6JP
>         tel: +44 (0)20 7802 4348   fax: +44 (0)20 7802 9420
>         email: gedwards@lastminute.com
> internet:http://www.lastminute.com/
>         do something lastminute.com
>
>


------------------------------

This e-mail is intended for the named addressee only.  It may contain confidential and/or privileged information.  If
youhave received this message in error, please let us know and then delete this message from your system.  You should
notcopy the message, use it for any purpose or disclose its contents to anyone. 

Re: FW: Errors when building jdbc dirver jar file

From
Rene Pijlman
Date:
You wrote:
>> /usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Driver.java
>> :199: ';' expected
>>     [javac]     return ${major};

IIRC this disappears when you do 'make clean' first.

If that doesn't work, go through the complete setup of the
source tree (with ./configure etc.) as described in the top
level INSTALL file. Then a make in src/interfaces/jdbc should
work.

Regards,
René Pijlman <rene@lab.applinet.nl>