cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Litrik De Roy" <>
Subject Re: cocoon and eclipse.
Date Fri, 03 Jan 2003 20:51:50 GMT
From: "Litrik De Roy" <>

> From: "Sylvain Wallez" <>
> > Antonio Gallardo wrote:
> >
> > >Can someone provide the project to build Cocoon using Eclipse?
> > >
> >
> > Read the instructions at
> >
> >
> > Sylvain
> >
> I still get one error during compilation:
> Error
> This resource is a duplicate and was not copied to the output folder
> package.html
> Cocoon 2.1-dev/src/blocks/samples/java/org/apache/cocoon/acting/modular
> I'm not sure what that means. I did a search on Google to try to find
> anything related to "resource is a duplicate" and Eclipse, but I didn't
> anything.
> Also interesting:
> Yesterday I used the built-in CVS client of Exclipse. And I was able to
> checkout Cocoon and compile it (except the above problem). However, I was
> not able to right click on the build.xml and run ant. I always got the
> following error message:
> Compiling 2 source files to D:\eclipse-2.0.2\workspace\Cocoon
> 2.1-dev\tools\anttasks
> Build exception: file:D:/eclipse-2.0.2/workspace/Cocoon
> 2.1-dev/build.xml:274: Unable to find a javac compiler;
> is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK
> But I am 100% sure that my JAVA_HOME is set correctlty.
> Now... today I used your instructions on the Wiki page. I checked out
> with my regular CVS client and then I created the project in Eclipse and
> pointed to the exisitng dir. And guess what.... everything compiles fine
> I was able to right click on the build.xml and run an Ant against the
> clean" target.
> Unfortunately I was only able to run Ant only once. Now it is giving me
> same erorr message like on my other (Eclipse's CVS checkout) project.
> Very strange....
> PS: I'm not sure if this is Cocoon or Eclipse. We might be going off-topic
> here....
> Litrik De Roy

I did some additional testing and it looks like Ant ran once because there
were still class files in tools\anttasks as the result of my "build
eclipse-project" on the command line. After doing the "build clean" in
Eclipse they were deleted and they can not be recompiled, because of the
above error message about

So basically it all comes down to the fact that I can not get Exclipse to
compile anything when using the Ant build script....


Litrik De Roy

To unsubscribe, e-mail:
For additional commands, email:

View raw message