“Android Create” call fails in windows 7 - missing JDK

前端 未结 8 919
孤独总比滥情好
孤独总比滥情好 2020-12-05 21:43

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

8条回答
  •  孤街浪徒
    2020-12-05 22:01

    It is really hell with JDK detection...

    My params: Win 7 x64 + JDK x64 (JDK path (c:\Program Files\Java\jre7\bin)

    Was googling and playing around with env variables may be 1 hour - no way.

    Finally come with such solution

    Manually edit android-sdk-windows\tools\lib\find_java.bat by hardcoding the path to java.exe

    set java_exe=c:\Progra~1\Java\jre7\bin\java.exe
    if not defined java_exe goto :CheckFailed
    
    :SearchJavaW
    set javaw_exe=c:\Progra~1\Java\jre7\bin\javaw.exe
    if not exist %javaw_exe% set javaw_exe=%java_exe%
    goto :EOF
    

    Thats works for me.

提交回复
热议问题