cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael J. Sherman" <msher...@dsbox.com>
Subject Cannot compile cocoon
Date Fri, 15 Oct 2004 15:17:35 GMT

Hi everyone;

I grabbed down Cocoon CVS from 11am EDT Oct 15.  I have ant 1.6.2 and 
Java JDK 1.5.0.

When I attempt a './build.sh' in the cocoon-2.1/ dir, I eventually get 
this error:

-----------------------------------------------------------
Compiling 268 source files to 
/root/cocoon-2.1/build/cocoon-2.2.0-dev/blocks/forms/dest
/root/cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/event/ProcessingPhase.java:22:

as of release 1.5, 'enum' is a keyword, and may not be used as an 
identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
import org.apache.commons.lang.enum.ValuedEnum;
                                ^
1 error

BUILD FAILED
/root/cocoon-2.1/tools/targets/compile-build.xml:210: The following 
error occurred while executing this line:
/root/cocoon-2.1/build/cocoon-2.2.0-dev/temp/blocks-build.xml:6821: 
Compile failed; see the compiler error output for details.
-----------------------------------------------------------

If I try to compile the latest source release (2.1.5.1, not CVS), I 
get this error right away:

-----------------------------------------------------------
Buildfile: build.xml

init-tasks:
Created dir: /root/cocoon-2.1.5.1/tools/anttasks
Compiling 5 source files to /root/cocoon-2.1.5.1/tools/anttasks
javac: target release 1.3 conflicts with default source release 1.5

BUILD FAILED
/root/cocoon-2.1.5.1/tools/targets/init-build.xml:159: Compile failed; 
see the
compiler error output for details.

Total time: 1 second
-----------------------------------------------------------

I thought I had read in the mailing list archives that the JDK 1.5 
issues with the new keyword 'enum' had been worked out.  Can someone 
clue me in?  I need to get Cocoon installed and working, but all three 
of my varied attemps have failed (older binary release, current 
release, and CVS).

Thanks!
-Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message