Hi Amit,
This is a very common problem. First you have to run
the "configure" script from the main postgre-sql
directory as follows:
# ./configure --with-java
Then go to the "jdbc" directory and run the "make"
command as follows:
# make
The above command internally runs the "ant"
That's it.
Regards,
Satish.
--- Amit Lamba <amit_lamba99@yahoo.com> wrote:
> Hi,
> I am new to postgresql and need some help in
> creating jdbc driver.I installed ant and went to
> /src/interfaces/jdbc directory and type make but i
> got
> the following error:
> Buildfile: ./build.xml
>
> all:
>
> prepare:
>
> check_versions:
>
> driver:
> [echo] Configured build for the JDBC2
> Enterprise
> edition driver
>
> compile:
> [javac] Compiling 53 source files to
>
/usr/local/postgresql-7.2.1/src/interfaces/jdbc/build
> [javac]
>
/usr/local/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/Driver.java:234:
> ';' expected
> [javac] return ${major};
> [javac] ^
> [javac]
>
/usr/local/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/Driver.java:244:
> ';' expected
>
>
> and BUILD FAILED at the end
>
> Does that mean there is some problem with built
> file.
> PLease reply so i can proceed
> Thanks,
> Amit
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com