I know this problem has been addressed before several times, but rather than comment on an old question I decided to make a new one with (hopefully) updated information.
As the title says, no matter what I do I cannot get the SDK Manager to run. I have tried installing both the 32- and 64-bit versions of jdk1.7.0 but no luck.
Currently I have both the jdk (32-bit) and the sdk installed in the C:\ directory. As many have said I changed the environment variable below to reflect the locations. Namely:
Variable name: PATH
Variable value:
C:\Android\android-sdk\tools;C:\Java\jdk1.7.0\; C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\
(Obviously I only added the first two values)
Somebody out there must have had the same difficulty setting this up who can help me out here. I had no problem installing everything on my 32-bit Win7 machine, but the 64-bit is my main computer and I really need to have the SDK with me if I am going to learn how to use it.
(EDIT: Solved!)
The problem I was having was that a command prompt window would pop up then the SDK Manager would start to load then instantly crash.
Strangely, someone else with a very similar computer to mine just installed with no problems whatsoever. Weird.
I finally added another environment variable:
Variable name: JAVA_HOME
Variable value: C:\Java\jdk1.7.0\
and it worked!
Thanks for all the help everyone. I hope this can help someone else who might have the same problem.
In order to better debug the problem, run the sdk/tools/android.bat application from the command line. This will likely spit out the error message that is lost if the cmd window closes automatically, such as when you just double click the executable.
Also for completeness of the answers to this question, try running the sdk manager as administrator.
Maybe missing two variable settings:
set java_exe=%JAVA_HOME% - use JAVA_HOME if you have set system global varibale!
for /f %%a in ('%java_exe% -jar %work_dir%\lib\archquery.jar') do set swt_path=lib\%%a Missed local variable which is bold.
I made this changes and it is work for me System: Windows7 x64 IDE: Eclipse JUNO x64
Had the same issue. Downloaded all the appropriate files and unzipped into
C:\Development
folder. Opened Eclipse, Select Windows drop down box. Start SKD Manager from this location. Worked for me!!!!!!!Try turning down the strength of the User Access Control settings.
I have 64 bit Windows 7 and so far no problems with SDK manager.
I have both 32 and 64 bit JDK's installed (JDK-6, not 7), but Java home points only to 64 bit Java. Check also your registry value for Java home:
it should point to your 64 bit JDK. It's better to do it using Java widget from your Control Panel -> Programs
Ok, one on Windows 7 64bit machine the JAVA_HOME trick did work: i.e. set JAVA_HOME = your jdk bin directory. Also add the jdk bin directory to your path.
On my other Windows 7 64bit machine I had more problems. I tried downloading a different find_java.bat - it didn't help. I tried setting ANDROID_SWT=lib\x86_64 - that helped a bit.
Eventually I stuck with the JAVA_HOME and path changes, then skipped installing the android sdk, installed the ADT Plugin into eclipse. From there, after you reboot, you should see SDK Manager available in the eclipse Help menu. I ran it from there and it was all smooth sailing.