Re: Eclipse/Ant Build "Failed Build"
by Puybaret » Fri Jan 15, 2010 8:21 am
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.
[/list=1]
Note that in Targets tab there are many different Ant targets. [;)]
Don't forget to create keys.keytool file first for javaWebStart, applet and viewer targets (see README.TXT file).