El lun, 25-04-2005 a las 00:08 -0700, Larry Suto escribiÃ:
> Thanks for info. I will try that. Is there anyway to get it running
> under jdk1.5.
> 

It should *run* under 1.5, it will just not compile unless source is set
to 1.4

Once you build it, it should run. Also, you can take HEAD from svn if
you want to build it under 1.5

(Not that I can test it, there is no java 1.5 for linux-ppc)

Regards
Santiago

> Regards, larry
> 
> On 4/24/05, David Botterill <[EMAIL PROTECTED]> wrote:
> > Yes, using 1.4 will solve this.  The "enum" keyword is the hint.
> > 
> > Set JAVA_HOME to point to JDK 1.4 before running "maven fullDeployment".
> > 
> > Cheers!
> > -David
> > 
> > Larry Suto wrote:
> > 
> > >I am trying to compile pluto, but I am getting the following build errors.
> > >Will using -source 1.4 solve this problem. And if so where do I need to 
> > >add it?
> > >
> > >thanks
> > >
> > > [javac] Compiling 145 source files to /usr/pluto/container/target/classes
> > >/usr/pluto/container/src/java/org/apache/pluto/core/impl/PortletPreferencesImpl.
> > >java:259: as of release 1.5, 'enum' is a keyword, and may not be used as 
> > >an iden
> > >tifier
> > >(try -source 1.4 or lower to use 'enum' as an identifier)
> > >        Enumeration enum = this.getNames();
> > >                    ^
> > >/usr/pluto/container/src/java/org/apache/pluto/core/impl/PortletPreferencesImpl.
> > >java:260: as of release 1.5, 'enum' is a keyword, and may not be used as 
> > >an iden
> > >tifier
> > >(try -source 1.4 or lower to use 'enum' as an identifier)
> > >        while (enum.hasMoreElements())
> > >               ^
> > >/usr/pluto/container/src/java/org/apache/pluto/core/impl/PortletPreferencesImpl.java:262:
> > >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)
> > >            String name = (String)enum.nextElement();
> > >                                  ^
> > >3 errors
> > >
> > >BUILD FAILED
> > >File...... /root/.maven/cache/maven-multiproject-plugin-1.3.1/plugin.jelly
> > >Element... maven:reactor
> > >Line...... 217
> > >Column.... 9
> > >Unable to obtain goal [multiproject:install-callback] --
> > >/root/.maven/cache/maven-java-plugin-1.5/plugin.jelly:63:48:
> > ><ant:javac> Compile failed; see the compiler error output for details.
> > >
> > >
> >
-- 
Santiago Gala <[EMAIL PROTECTED]>
High Sierra Technology, SLU

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente

Reply via email to