Re: Errors when building jdbc dirver jar file

From: Barry Lind <barry(at)xythos(dot)com>
To: Grant Edwards <gedwards(at)Lastminute(dot)com>
Cc: "'pgsql-jdbc(at)postgresql(dot)org'" <pgsql-jdbc(at)postgresql(dot)org>, "'grant(dot)edwards(at)btinternet(dot)com'" <grant(dot)edwards(at)btinternet(dot)com>
Subject: Re: Errors when building jdbc dirver jar file
Date: 2001-10-02 20:16:06
Message-ID: 3BBA2086.7070600@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

You need to run configure first (with the --with-java option) first,
before building the driver.

--Barry

Grant Edwards wrote:

> 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(dot)edwards(at)btinternet(dot)com or gedwards(at)lastminute(dot)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:1
> 99: ';' expected
> [javac] return ${major};
> [javac] ^
> [javac]
> /usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Driver.java:2
> 09: ';' expected
> [javac] return ${minor};
> [javac] ^
> [javac]
> /usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Driver.java:1
> 99: 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:2
> 09: 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(at)lastminute(dot)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 you have received this message in error, please let us know and then delete this message from your system. You should not copy the message, use it for any purpose or disclose its contents to anyone.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2001-10-02 20:20:45 Re: driver fails to handle strings in query statements properly
Previous Message Barry Lind 2001-10-02 20:14:38 Re: jdbc download jar is corrupted