When put this way I assume I do build Cocoon in Eclipse 3.1 according to your definitions. The ExceptionInInitializerError is caused by the fact that Eclipse defaults to it's own Ant 1.6.2 version, as you've already figured out. I solved this problem by going into the properties of the "run ..." option if you right click on the target you want in the top build.xml file outline (I don't have Eclipse open now so I might be wrong when it comes to exact names). One of the tabs you see in the dialog sets the Ant Home directory. I set it to an installed version of ant 1.6.1, but since Cocoon includes ant 1.6.1 as well, you could also set it to that. Note: you have to do this for each target you want to run!
After that it's point and click to run the target. IIRC the last tab allows you to check the "external tools" box. If you do that, and you've filled in a meaningful name in the box above the tabs, your name becomes part of the dropdown list of the toolbar icon that is green with a white triangle and a red box. After that, recompiling Cocoon is even more simple: you select the name from the dropdown list and if you've done that before, you only have to click the icon, because Eclipse remembers the last selection you've made. HTH. Bye, Helma -----Original Message----- From: Torsten Schlabach [mailto:[EMAIL PROTECTED] Sent: Wednesday, 15 December, 2004 17:43 To: [EMAIL PROTECTED] Subject: Still challenged with building Cocoon in Eclipse Hi all, I still try to build Cocoon in Eclipse by following this howto: http://wiki.apache.org/cocoon/Cocoon215TOC and I still face this error: Buildfile: C:\local\eclipse-scratchpad-workspace\cocoon-2.1.6\build.xml init: init-tasks: [mkdir] Created dir: C:\local\eclipse-scratchpad-workspace\cocoon-2.1.6\build\cocoon-2.1.6\mocks [javac] Compiling 1 source file to C:\local\eclipse-scratchpad-workspace\cocoon-2.1.6\build\cocoon-2.1.6\mocks compile-deprecated: BUILD FAILED: java.lang.ExceptionInInitializerError Total time: 30 seconds Someone pointed me at http://wiki.apache.org/cocoon/YourCocoonBasedProjectAnt16 But having read this through I think it cannot be the answer as it is based on heavily changing the build.xml and properties files and if I get it right talks about building it through on the command line first and then just use Eclipse as and editor / viewer. So my question still is: Did anyone ever successfully: - Download and extract the tar - Run ant eclipse-project - Imported and built the project in Eclipse When I say "build in Eclipse" I am talking about locating the top build.xml file in Eclipse, right-clicking on it and choosing "Run as ..." and "Ant build". Especially, what I don't understand in the "LoadInEclipse" Wiki page is this section: To run the Ant build from within Eclipse you have to add something like this to the build.xml: <!-- =========================================================== --> <!-- Use the Eclipse compiler if we are running in eclipse --> <!-- =========================================================== --> <target name="properties" if="eclipse.running"> <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> </target> Where should I put this? Regards, Torsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]