issue during the dex phase of ant build?

I am doing:
android update project ~~p .~~s t android-19
./build_native.sh in cygwin shell.
ant release
Dsdk.dir=ANDROID_HOME

The dex phase is giving me trouble and wondering if someone knows the solution…
dex:
input: D:2d-x-3.0alpha0\cocos2d-x-3.0alpha0\samples\Cpp\TestCpp\proj.android\bin\classes
input: D:2d-x-3.0alpha0\cocos2d-x-3.0alpha0\cocos2dx\platform\android\java\bin\classes.jar
Using Pre-Dexed classes-a8339d871835e32f0a51dc87992ae429.jar <
D:2d-x-3.0alpha0\cocos2d-x-3.0alpha0\cocos2dx\platform\android\java\bin\classes.jar
[dex] Converting compiled files and external libraries into D:2d-x-3.0alpha0\cocos2d-x-3.0alpha0\samples\Cpp\TestCpp\proj.android\bin\classes.dex…
[dx] The system cannot find the path specified.
[dx] The system cannot find the path specified.
[dx] The system cannot find the path specified.
[dx] Merged dex A (5 defs/1.4KiB) with dex B (19 defs/38.3KiB). Result is 24 defs/45.8KiB. Took 0.1s

Thanks,
—dave
http://dave.thehorners.com/tech-talk/programming/459-android-programming

https://code.google.com/p/android/issues/detail?id=57095
I haven’t solved it yet, but when I run dx from the cmdline directly, I see two “The system cannot find the path specified.”…

Much like the above link mentions, my system was also setup badly since I added a cd /some/path/ in my .bashrc.bat file. Once I removed the invalid cd, the dex phase began working again.

thanks to carol-nichols: http://carol-nichols.com/2011/03/17/the-system-cannot-find-the-path-specified/

—dave
http://dave.thehorners.com/tech-talk/programming/459-android-programming