Thread: errors with jdbc

errors with jdbc

From
shantanu-pqsql@dcpl.co.in
Date:
Hi,
I am trying to install postgres with jdbc support. It was already
installed without jdbc support.

Version used are,

OS Red Hat 7.3
postgresql-7.2
jakarta-ant-1.5
j2sdk-1_4_1_02-fcs-linux-i586.rpm
# java -version
java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)


I am logging as user postgres  and doing configure and make
I have put the configure report at,
http://www.tyskyshop.com/config.txt
and make report at,
http://www.tyskyshop.com/make.txt

The error I get at make is,
BUILD FAILED
file:/usr/local/src/postgresql-7.2/src/interfaces/jdbc/build.xml:72:
Compile failed; see the compiler error output for details.



Please tell me what the problem is after looking at the two logs above.

Cheers
Shantanu


--
Make sure every module hides something.
            - The Elements of Programming Style (Kernighan & Plaugher)


Re: errors with jdbc

From
Barry Lind
Date:
You can't build the 7.2 jdbc driver with a 1.4 jdk (however it will run
under a 1.4 jdk).  You either need to use a 1.3 or prior jdk for
building, or download prebuilt jars from jdbc.postgresql.org for 7.2.

thanks,
--Barry


shantanu-pqsql@dcpl.co.in wrote:
> Hi,
> I am trying to install postgres with jdbc support. It was already
> installed without jdbc support.
>
> Version used are,
>
> OS Red Hat 7.3
> postgresql-7.2
> jakarta-ant-1.5
> j2sdk-1_4_1_02-fcs-linux-i586.rpm
> # java -version
> java version "1.4.1_02"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
> Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
>
>
> I am logging as user postgres  and doing configure and make
> I have put the configure report at,
> http://www.tyskyshop.com/config.txt
> and make report at,
> http://www.tyskyshop.com/make.txt
>
> The error I get at make is,
> BUILD FAILED
> file:/usr/local/src/postgresql-7.2/src/interfaces/jdbc/build.xml:72:
> Compile failed; see the compiler error output for details.
>
>
>
> Please tell me what the problem is after looking at the two logs above.
>
> Cheers
> Shantanu
>
>


Re: errors with jdbc

From
shantanu-pqsql@dcpl.co.in
Date:
* Barry Lind <blind@xythos.com> [030421 21:51]:
> You can't build the 7.2 jdbc driver with a 1.4 jdk (however it will run
> under a 1.4 jdk).  You either need to use a 1.3 or prior jdk for
> building, or download prebuilt jars from jdbc.postgresql.org for 7.2.

Thanks for the mail. I just downloaded the jdbc jar file from
http://jdbc.postgresql.org and put the same in lib directory of tomcat.
Hope it works.

Thanks.
Shantanu

> >OS Red Hat 7.3
> >postgresql-7.2
> >jakarta-ant-1.5
> >j2sdk-1_4_1_02-fcs-linux-i586.rpm
> ># java -version
> >java version "1.4.1_02"
> >Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
> >Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
> >
> >
> >I am logging as user postgres  and doing configure and make
> >I have put the configure report at,
> >http://www.tyskyshop.com/config.txt
> >and make report at,
> >http://www.tyskyshop.com/make.txt

--
Instrument your programs.  Measure before making "efficiency" changes.
            - The Elements of Programming Style (Kernighan & Plaugher)