ant wants to build a J2EE jdbc driver (I only want a J2SE driver!)
От | Jerry Asher |
---|---|
Тема | ant wants to build a J2EE jdbc driver (I only want a J2SE driver!) |
Дата | |
Msg-id | 4.3.2.7.2.20010530201858.00c03b30@hollyjerry.org обсуждение исходный текст |
Ответ на | initdb takes forever! ("Russell Black" <rblack@iarchives.com>) |
Ответы |
Re: ant wants to build a J2EE jdbc driver (I only
want a J2SE driver!)
|
Список | pgsql-cygwin |
I am trying to build postgresql 7.1.2 on NT using the cygwin package. I am using jdk 1.3.1 Standard Edition. I configured the system to build the jdbc driver ./configure --with-java and then I ran make. Everything is seemingly succesful until it starts building the jdbc driver, which reports 100 errors similar to: Administrator@DUALBERT:c:/cygnus/usr/src/postgresql-7.1.2$ ant Buildfile: build.xml jar: call: prepare: check_versions: driver: [echo] Configured build for the JDBC2 Enterprise edition driver. compile: [javac] Compiling 58 source files to C:\cygnus\usr\src\postgresql-7.1.2\src\interfaces\jdbc\build [javac] C:\cygnus\usr\src\postgresql-7.1.2\src\interfaces\jdbc\org\postgresql\xa\XADataSourceImpl.java:64: cannot resolve symbol [javac] symbol : class Xid [javac] location: package xa [javac] import javax.transaction.xa.Xid; [javac] ^ [javac] C:\cygnus\usr\src\postgresql-7.1.2\src\interfaces\jdbc\org\postgresql\xa\XADataSourceImpl.java:237: cannot resolve symbol [javac] symbol : class Xid [javac] location: class org.postgresql.xa.XADataSourceImpl [javac] TxConnection getTxConnection( Xid xid ) [javac] ^ A brief check at Sun seems to indicate that the javax.transaction.xa.Xid class comes with the jdk1.4 that apparently is still in beta. (I say this as I cannot find any Xid references in the 1.3 documentation.) Of course, I note too that ANT is trying to build a JDBC2 Enterprise edition driver. Hmm. I only have the JDK Standard Edition loaded. That would appear to be a problem, but what do I do about it? Yet, when I build postgres 7.1.1 on Linux with the JDK 1.3.1 Standard Edition, I dont' receive these errors (and the underlying jdbc driver source code looks the same.) Can you advise? Thank you, Jerry Asher ===================================================== Jerry Asher jerry@hollyjerry.org 1678 Shattuck Avenue Suite 161 Tel: (510) 549-2980 Berkeley, CA 94709 Fax: (877) 311-8688
В списке pgsql-cygwin по дате отправления: