Print at Dec 20, 2025, 8:29:45 PM

Posted by Puybaret at Jan 15, 2010, 8:21:11 AM
Re: Eclipse/Ant Build "Failed Build"
Forget about JAVA_HOME.

Here's my way to run Ant in Eclipse:

  • select build.xml file in Sweet Home 3D project
  • choose Run > External Tools > Run As > Ant Build... menu item
  • in Edit Configuration dialog, select JRE tab
  • click on Separate JRE radio button,
  • click on Installed JREs... button,
  • in Preferences (Filtered) dialog, click on Add... button
  • in Add JRE dialog, select Standard VM, click on Next > button,
  • click on Directory... button, and choose the directory of the JDK (not the JRE), probably C:\Program Files\Java\jdk1.6.0_17 under Windows,
  • click on Finish, and click on OK in Preferences dialog,
  • in Edit Configuration dialog, select jdk1.6.0_17 as separate JRE
  • click on Run.

Note that in Targets tab there are many different Ant targets. wink
Don't forget to create keys.keytool file first for javaWebStart, applet and viewer targets (see README.TXT file).
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator