I created a "Hello World" Android Project in Eclipse (Indigo) on Windows 7 64-bit. It's using Android SDK 1.6.

It builds from the IDE without any problems.

Now I want to build it from the command line. I found this question: Opening an eclipse project through command prompt or batch file and Headless Building with APT in Eclipse, so I ran this:

C:\inst\Android\eclipse>eclipsec.exe -data "C:\eclipsewsTest1" -application org.
eclipse.jdt.apt.core.aptBuild

What I'm getting is the following:

Building workspace
Building '/And1'
Invoking builder on '/And1'.
Invoking builder on '/And1'.
Invoking 'Java Builder' on '/And1'.
Cleaning output folder for And1
Build done
Invoking builder on '/And1'.

and then a dialog shows this message:

An error has occurred. See the log file C:\eclipsewsTest1\.metadata\.log

This log file contains something like this:

eclipse.buildId=M20110909-1335
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product -application org.eclipse.jdt.apt.core.aptBuild
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -data C:\eclipsewsTest1 -application org.eclipse.jdt.apt.core.aptBuild

!ENTRY org.eclipse.core.resources 2 10035 2011-12-09 10:50:35.233
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.osgi 4 0 2011-12-09 10:50:35.553
!MESSAGE A
Edit
Report