Hi,

Compiling James 2.3.1 with JDK5 also works fine for me..

r...@zeus:/opt/james-2.3.1# java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) Server VM (build 1.5.0_16-b02, mixed mode)

--
r...@zeus:/opt/james-2.3.1# ant
Buildfile: build.xml

[...]

main:

BUILD SUCCESSFUL
Total time: 7 seconds
---

default properties sets compile flags to 1.4 target anyways..

--
jdk.source = 1.4
jdk.target = 1.4
--

not sure, why this doesn't work with jdk6? normally invoking ant with specific
source/target flags should be working for all java sdk versions, right?

Jonas

Stefano Bagnara schrieb:
Max Levinson ha scritto:
Hi guys,

I am trying to build James from a source code (using this file:
james-with-phoenix-2.3.1-src.tar.gz) on CentOS 5.2, I am using the
most recent version of Java (Installed it from rpm from sun.com) was
using this bin file jdk-6u12-linux-i586-rpm.bin
[r...@srv1 james]# java -version
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode)

[r...@srv1 james]# ant -version
Apache Ant version 1.7.1 compiled on June 27 2008

Here are the errors during James compilation:
[...]
Any ideas?

Yes. You have to use JDK1.4 to build james, because newer JDK provides
updated JDBC that is incompatible with the one JAMES binds to.

Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org

Reply via email to