What version of Jetspeed 2 (M1 or the latest source from CVS Head) are
you using? I remember a comment from Jeremy Ford that the M1 source is
not compatible with JDK1.5, but if you get the latest source from CVS
Head, you should be able to compile with JDK1.5.

Hema


On Sat, 12 Mar 2005 12:11:01 -0500, Danilo Luiz Rheinheimer
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
>   I can not build jetspeed 2 on a machine running linux with jdk 1.5
>   Using jdk 1.4 and windows it is working ok (but I think the problem is
> with jdk 1.5 not linux).
>   This is the error message :
> 
> +----------------------------------------
> | Build and Install all Jetspeed 2 jars Jetspeed-2 Registry Components
> | Memory: 58M/73M
> +----------------------------------------
> Attempting to download jmock-SNAPSHOT.jar.
> 
> jar:install:
> 
> build:end:
> 
> build:start:
> 
> java:prepare-filesystem:
>     [mkdir] Created dir:
> /home/danilo/prg/portal/jetspeed/components/registry/target/classes
> 
> java:compile:
>     [echo] Compiling to
> /home/danilo/prg/portal/jetspeed/components/registry/target/classes
>     [echo]
> ==========================================================
> 
>   NOTE: Targetting JVM 1.5, classes
>   will not run on earlier JVMs
> 
> ==========================================================
> 
>     [javac] Compiling 52 source files to
> /home/danilo/prg/portal/jetspeed/components/registry/target/classes
>     [javac]
> /home/danilo/prg/portal/jetspeed/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java:282:
> as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
>     [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
>     [javac]                 for (Enumeration enum = bundle.getKeys();
> enum.hasMoreElements();)
>     [javac]                                  ^
>     [javac]
> /home/danilo/prg/portal/jetspeed/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java:282:
> as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
>     [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
>     [javac]                 for (Enumeration enum = bundle.getKeys();
> enum.hasMoreElements();)
>     [javac]                                                           ^
>     [javac]
> /home/danilo/prg/portal/jetspeed/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java:284:
> as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
>     [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
>     [javac]                     String key = (String) enum.nextElement();
>     [javac]                                           ^
>     [javac] 3 errors
> 
> BUILD FAILED
> File...... /home/danilo/prg/portal/jetspeed/maven.xml
> Element... maven:reactor
> Line...... 133
> Column.... 40
> Unable to obtain goal [java:compile] --
> /home/danilo/.maven/cache/maven-java-plugin-1.5/plugin.jelly:63:48:
> <ant:javac> Compile failed; see the compiler error output for details.
> Total time: 12 minutes 55 seconds
> Finished at: Sat Mar 12 11:09:11 EST 2005
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hema Menon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to