SDK manager not starting

2019-08-28 02:21发布

When i click on SDK manager in the eclipse, it does not start. Rather it displaying following message

Android\tools\lib\\find_java.exe -s' is not recognized as an internal or external command, operable program or batch file"

I tried to change my Path variable, but it still does not work. Not sure what mistake I am doing. Appreciate your help.

My path variable contains:

JAVA_HOME is C:\Program Files\Java\jdk1.7.0

C:\Program Files\PC Connectivity Solution\;%JAVA_HOME%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseGit\bin

Thanks

3条回答
看我几分像从前
2楼-- · 2019-08-28 02:46

I guess there is a problem with the find_java.bat file. Please refer to the thread here https://code.google.com/p/android/issues/detail?id=28196

查看更多
何必那么认真
3楼-- · 2019-08-28 02:47

Not sure if this is the solution your looking for, but when I set file path variables I use 2 backslashes instead of one. So it would be

C:\\Program Files\\Java\\jdk1.7.0\\jre\\bin;
D:\\Android-SDK\\adt-bundle-windows-x86-20130911\\adt-bundle-windows-x86-20130911\\sdk\\tools;
C:\\Program Files\\PC Connectivity Solution\\; 
查看更多
霸刀☆藐视天下
4楼-- · 2019-08-28 02:55

Try these steps:

Open up /tools/android.bat in your favorite text editor

Search for this piece of code:

set java_exe=
call lib\find_java.bat
if not defined java_exe goto :EOF

Replace it with this:

set java_exe="<Path of your JDK>\bin\java.exe" 

java_exe will be the static path is the path to your Java exe.

Run android.bat

查看更多
登录 后发表回答