对我来说,在windows 8 64上,通过编辑android-sdk/tools/lib文件夹中的find_java.bat解决了这个问题。
基本上,如果
小径上有一个空白!Ie.“c:\程序文件\javajdk”有这个,FiffyJava.BAT
将java_exe设置为android.bat不喜欢的“c:\程序”。
当我编辑find_java.bat时,我很好:
(请参阅“rem edit:”后面的两行)
rem Check we have a valid Java.exe in the path. The return code will
rem be 0 if the command worked or 1 if the exec failed (program not found).
for /f %%a in ('%~dps0\find_java.exe -s') do set java_exe=%%a
rem edit:
set java_exe="%JAVA_HOME%\bin\java.exe"
if not defined java_exe goto :CheckFailed
:SearchJavaW
rem Check if we can find a javaw.exe at the same location than java.exe.
rem If that doesn't work, just fall back on the java.exe we just found.
for /f %%a in ('%~dps0\find_java.exe -s -w') do set javaw_exe=%%a
rem edit:
set javaw_exe="%JAVA_HOME%\bin\javaw.exe"
if not exist %javaw_exe% set javaw_exe=%java_exe%
goto :EOF
高温高压