Thread: Why not --with-java?

Why not --with-java?

From
Armin Faltl
Date:
Hi all,

I'm trying to compile PostgreSQL 7.2.1 "--with-java" and get errors in the
JDBC-driver. Compilation without java works, and the resulting db-system
works.

My configuration:
    * Debian GNU/Linux 3.0 "woody" (fsn.hu's i386 Binary-1 (20020125))
    * jakarta-ant 1.5
and one of:
    - SUN j2sdk1.4.0_01 (worked best)
    - j2sdk1.3.1 (from elsewhere)
    - SUN jdk1.3.1_02

When using the JAVA 1.4.0, compilation stopped with the missing class(es)
    "javax.transaction.RollbackException"
ANT was compiled anew with ever choice of JAVA and is reported not to work
with the later to JAVAs by PostgreSQLs "configure".

Please tell me a known working configuration, or where to get the
"javax.transaction.RollbackException"-classes

Best Regards,

Armin Faltl

Re: Why not --with-java?

From
Barry Lind
Date:
Armin,

The 7.2 jdbc code does not compile under jdk1.4.  You either need to
build with jdk1.2 or 1.3, or get the prebuilt jar files from
jdbc.postgresql.org.  Code built under jdk12/13 will run under jdk1.4.

thanks,
--Barry

Armin Faltl wrote:
> Hi all,
>
> I'm trying to compile PostgreSQL 7.2.1 "--with-java" and get errors in the
> JDBC-driver. Compilation without java works, and the resulting db-system
> works.
>
> My configuration:
>     * Debian GNU/Linux 3.0 "woody" (fsn.hu's i386 Binary-1 (20020125))
>     * jakarta-ant 1.5
> and one of:
>     - SUN j2sdk1.4.0_01 (worked best)
>     - j2sdk1.3.1 (from elsewhere)
>     - SUN jdk1.3.1_02
>
> When using the JAVA 1.4.0, compilation stopped with the missing class(es)
>     "javax.transaction.RollbackException"
> ANT was compiled anew with ever choice of JAVA and is reported not to work
> with the later to JAVAs by PostgreSQLs "configure".
>
> Please tell me a known working configuration, or where to get the
> "javax.transaction.RollbackException"-classes
>
> Best Regards,
>
> Armin Faltl
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>