I\'m having a problem getting my android dev environment setup in Windows 7. I follow the instructions here, as well as several environment sublinks. I am using Eclipse wi
I put rem statement in android.bat after the call command and hardcode the path of \bin\java.exe:
rem Check we have a valid Java.exe in the path.
set java_exe=<..>\jdk1.6.0_31\bin\java.exe
rem call lib\find_java.bat
if not defined java_exe goto :EOF
Same for setting other variable javaw_exe thus:
set javaw_exe=<..>\jre1.6.0_31\bin\javaw.exe
if not exist %javaw_exe% set javaw_exe=%java_exe%
goto :EOF
In the SDK tools folder go to libs and edit find_java.bat
. It can usually be found in C:\Program Files (x86)\Android\android-sdk-windows\tools\lib
.
Change all instances of %PROGRAMFILES%
to %PROGRAMFILES(X86)%
.
I did this and the error went away.