문제는 tools/lib/find_java.bat 파일의 문제..
find_java.bat 를 메모장 등으로 열어서..
아래의 %arch_ext% 부분을 자신의 OS 플랫폼(32, 64) 에 맞게 바꾼다.
즉, 32bit 윈도우면.. find_java%arch_ext%.exe ==> find_java32.exe
64bit 윈도우면.. find_java%arch_ext%.exe ==> find_java64.exe
두군데 모두 바꿔주면 잘 된다..
결국 ANDROID_SWT, JAVA_HOME 등의 환경변수 문제가 아니었어..
--- find_java.bat ----------
rem Query whether this system is 32-bit or 64-bit
rem See also: http://stackoverflow.com/a/24590583/1299302
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" |^
find /i "x86" > NUL && set arch_ext=32 || set arch_ext=64
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 "delims=" %%a in ('"%~dps0\find_java%arch_ext%.exe" -s') do set java_exe=%%a
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 "delims=" %%a in ('"%~dps0\find_java%arch_ext%.exe" -s -w') do set javaw_exe=%%a
if not exist "%javaw_exe%" set javaw_exe=%java_exe%
goto :EOF
댓글 없음:
댓글 쓰기