Обсуждение: Problem building jdbc jars

Поиск
Список
Период
Сортировка

Problem building jdbc jars

От
"Robert Finneran"
Дата:
Hi pgsql-jdbc list.

This is my first post - so please forgive the newbie questions!

I get 100+ errors building.
Many of the messages are complaining that they cannot find
javax.transaction.xa.Xid.
For example, there's an import statement for this structure in the file
XADataSourceImpl.java.

My platform:

Linux 2.4.3-12
Ant 1.3
Sun Java J2SE JDK 1.3.1 (release)
jdbc2_0-stdext.jar is installed in my $JAVA_HOME/jre/lib/ext directory.

I don't understand the problem. I strange thing though, Sun docs suggest
that this interface is only part of 1.4 and not 1.3...

Any help would be appreciated!!!

Rob


Re: Problem building jdbc jars

От
Rene Pijlman
Дата:
On Wed, 1 Aug 2001 19:40:06 -0700, you wrote:
>I get 100+ errors building. Many of the messages are complaining
>that they cannot find javax.transaction.xa.Xid.

This is part of the Java Transaction API in J2EE:
http://java.sun.com/j2ee/transactions.html. Download and install
J2EE 1.2.1 from http://java.sun.com/j2ee/download.html#sdk and
that will probably fix it.

There is a line in the Ant build file
src/interfaces/jdbc/build.xml that's probably supposed to catch
this situation:

  <exclude name="${package}/xa/**" unless="jdk1.2e+" />

I'm not sure why it doesn't in your case.

Next time you post such a problem, please quote the (first)
error message you get from the compiler, including the line
number.

Regards,
René Pijlman