Having trouble firing up android studio. Get the following message: The environment variable JAVA_HOME (with the value of ?C:\Program Files\Java\jdk1.8.0_31) does not point to a valid JVM installation. The problem is that as far as I can tell, the environment variable I set up IS pointing to a valid install.
I've tried everything from renaming it to JDK_HOME, to pointing it to all the sub directories in the jdk folder, to uninstalling and reinstalling java and android studio about 3 time. I have triple checked that I have 64 bit JAVA installed (and that my computer is 64 bit). Pretty much at the end of my rope here. Help would be appreciated big time.
Here's a screen cap of my windows, you might spot something obvious I haven't:
You can try this
Android Studio error: "Environment variable does not point to a valid JVM instalation"
this works for me.
If you start 64bit Android Studio, you have to add JAVA_HOME as
"C:\Program Files\Java\jdk..."
If 32bit
"C:\Program Files(x86)\Java\jdk..."
and dont put "\bin" end of the path.
As you told you have 64 bit system then copy this path C:\Program Files\Java\jdk1.8.0_31
Step 1 :- Create JAVA_HOME variable by clicking new and past ( C:\Program Files\Java\jdk1.8.0_31) this path.
Step 2 Then click path variable and edit then past it your path after add semicolon (;) C:\Program Files\Java\jdk1.8.0_31
I am using windows 10 so this windows look like this
Note :- If above dialog not open then
, select path variable and click on Edit…. Locate the end of the current variable value
append the path of jdk, using a semicolon And click ok
To fix it, just remove "\bin" from my JAVA_HOME variable.
NOTE: be sure to put the JAVA_HOME path variable in the System variables rather than the user variables. If the path variable is in User the Android Studio will not find the path.
If you are sure that the variable is pointing to the right place, then:
Acess "C:\Program Files\Android\Android Studio\bin"
Choice the .exe for your machine.
Faced same problem for many weeks.
What worked for me:
uninstalled all java from laptop
then installed jdk 7 64 bit,
deleted JAVA_HOME and added JDK_HOME.
To fix Android Studio - JAVA_HOME doesn't point to a valid JVM installation Problem, follow the below steps:
Step 1: Open the command window by typing ‘cmd‘ in the Start menu search box.
Step 2: Now change the directory to the Android studio installation :
cd "c:\Program Files (x86)\Android\android-studio\bin"
Step 3: Type ‘studio.bat‘ and hit enter. If the JAVA environment variables are not set properly, then you should get an error message as below.
Step 4: So, it is clear that Android studio is not able to read the JDK location. All you need to do is, set the JAVA_HOME and JDK_HOME environment variables by following the steps mentioned in this guide.
Step 5: Close the existing command window. This step is very important, as the newly set variable will not reflect otherwise.
Step 6: Re-launch the command window and type the below command to ensure that the environment variables are set properly.
echo %JAVA_HOME%
echo %JDK_HOME%
Step 7: Now change the directory to the Android studio installation.
cd "c:\Program Files (x86)\Android\android-studio\bin"
Step 8: Type ‘studio.bat‘ and hit enter. Now the Android studio will launch normally.
Based on these link : Google Android Studio is not launching?
I use Windows 8.
2 steps:
Download jdk-7u80-windows-x64.exe
1.1 It's a requirement # https://developer.android.com/sdk/index.html#Requirements
Set JAVA_HOME to C:\Program Files\Java\jdk1.7.0_80
NOTE: not in Program Files (x86)
Remember that you have to set the JAVA_HOME variable to C:\Program Files\Java\jdk1.8.0_31, just like you set the variable JDK_HOME. :)
See this post for reference:
Android Studio installation on Windows 7 fails, no JDK found
Also, you could try installing an older version of java, as the newest ones might not be compatible with your IDE. Reference: Android Studio error: "Environment variable does not point to a valid JVM installation"
Ensure JAVA_HOME is in the "System Variables" and points to the JDK short path. For example if the JDK is C:\Program Files\Java\jdk1.7.0_79 set JAVA_HOME to C:\PROGRA~1\Java\JDK17~1.0_7 .
I was getting the above error message initially upon install but it started working when I made this change, and it was not necessary to reboot.
make JAVA_HOME a system variable under environment variables and set it to C:\Program Files\Java\jdk1.8.0_31.
After that logout and login back. This should eliminate the error message that you are getting. Then launch the Android Studio.
JAVA_HOME path : C:\Program Files\Java\jdk1.8.0_102\ //Copied from PATH variable.
Remove quotes if any.
If your system is 32 bit then execute studio.exe
If your system is 64 bit then simply execute studio64.exe
It solved my issue
I tried installing all the versions of JDK and changing the user environment variable. Only the following worked. Install the same versions and you are good to go.
Android studio version is 2.1.2
Install Java jdk1.8.0_91
Add the following user environment variable JAVA_HOME C:\Program Files\Java\jdk1.8.0_91
in your system Variable ( path ) append this wilset the C:\Program Files\Java\jdk1.8.0_31
In your case you just have to do the following:
`Go to Control Panel> Advanced System Settings> Environment Variables
> System Variables> New> Variable name: JDK_HOME
Variable value: C:\Program Files\Java\jdk1.8.0_31\
and then click on android studio..It will start working.`
I am using windows 7 32-bit and this worked for me:
Added new system variable: JDK_HOME with correct location of my JDK:
C:\Program Files\Java\jdk1.8.0_151
For this issue, I download the jdk oracle version 11 on the official java website, I then set the JAVA_HOME in the environment variable to the jdk path for both the user and system. It is important that it is jdk and not type jre. Hopefully this helps. Run the Android studio 64-bit type, if does not work try the 32-bit.
I found there is some issue if you download the wrong version of 32 or 64 bit version so be careful on that.
For me it got fixed when I removed the leading and trailing double quotes in the JAVA_HOME system environment variable (Windows 7 x64):
Did NOT work: "C:\path\to\jdk\without\bin"
Did work: C:\path\to\jdk\without\bin
Note:
I do not have any spaces in the path to the JDK (custom location)!
Step 1) Download your version of jdk exe file and run it. http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Step 2) Once installation is complete, you will see the jdk directory in Java folder in Program files under C Drive
Step 3) Right click on my computer, then click on advance settings, then click on environment settings.
Step 4) add a new variable called JAVA_HOME and set its path to PATH = C:\Program Files\Java\jdk1.8.0_31\
Step 5) Run Android Studio :)
FOR JAVA RELATED INSTALLATION THIS IS THE PATH SETTING ARE MATCHED N RUNS YOUR INSTALLATIONS SUCCESSFUL.
Step 1 :- Create JAVA_HOME variable by clicking new and past ( C:\Program Files\Java\jdk1.8.0_31) this path.
Step 2 Then click path variable and edit then past it your path after add semicolon (;) C:\Program Files\Java\jdk1.8.0_31
MY COMPUTER
|
RIGHT CLICK
|
PROPERTIES
|
ADVANCED SYSTEM SETTINGS
|
ADVANCED TAB
|
ENVIRONMENT VARIABLES
|
USER VARIABLES
|
NEW
|
VARIABLE NAME = JAVA_HOME
VARIABLE VALUE = "C:\Program Files\Java\jdk1.8.0_131"
REMOVE BIN, IF YOU ADDED ALREADY...
Hi! It works for me...
We can also resolve this issue by using jdk 8
to install jdk 8 click here http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.htmli
and download jdk setup install it
to copy the path go to c drive select programme file folder then choose java
then choose jdk and you will see the version go to that folder and copy the path and right click on my computer go to properties then choose advance settings then you will see one pop pup in that you have to choose variables.and click on new tab and give the name of variable JAVA_HOME and in the path you need to past the path that you have copy for jdk 8
enter image description here
after that you have to click ok ok two times
now start your android studio error will be resolved
Delete your all user variable paths from Environments Variable, and keep only two (TEMP & TMP) variables, it will work.
I'm having issues trying to boot-up Android Studio
When I try to launch it after installation I'm getting this error:
No JVM Installation found. Please install a 64 bit JDK.
My current system specification:
Operating System: Windows 8.0 64 bit version
JDK installed: JDK 1.8.0
What I have tried:
I have tried what was reported in the error, and also in most of the solutions to set the JDK_HOME variable in environment variables to my JDK path (64 bit version) i.e. C:\Program Files\Java\jdk1.8.0_05
*I also have tried rebooting system, just in case to test if the environment variable is not working without a restart
I have seen these solutions and tried but none of them works, so don't mark it as a duplicate of any of these:
Android Studio installation on Windows 7 fails, no JDK found
With android studio no jvm found, JAVA_HOME has been set
Android Studio start fails on Windows 8 64bit
Android Studio does not launch after installation
Here is the cmd output for java version:
I had the same problem. I tried setting all kind of paths but nothing worked. So I had to do some dirty fix. The only problem with this is that it opens a blank command line window.
I did the following to make it work.
goto the AndroidStudio installation folder.
goto bin folder and open studio.bat in text editor
add set JAVA_HOME=C:\Program Files\Java2\jdk1.8.0//your java path after the ECHO line.
goto Start -> All Programmes -> Android Studio ->
right click on Android Studio and click on properties.
You will see the Target something like <installation path>android-studio\bin\studio64.exe
change it to <installation path>android-studio\bin\studio.bat
Now you can access it by clicking it from the menu.
Note : I tried it with 8, It works.
I reproduced your issue on my Windows 8.1 system :
Installed 64-bit JDK 1.8.0_11.
Installed latest Android Studio Bundle.
Went to Control Panel -> System -> Advanced system settings -> Environment Variables...
Added JDK_HOME pointing to my 64-bit JDK.
Launched studio64.exe
I got the same message you did. Thinking that it might be the environment variable, I did the following :
Went to Control Panel -> System -> Advanced system settings -> Environment Variables...
Changed the name of JDK_HOME to JAVA_HOME.
Launched studio64.exe
It came up successfully !
1 .Download 64 bit version of JDK from here
As shown in next picture, go to Control Panel -> System and Security -> Advanced system settings -> Environment Variables -> New (System variables)
Then add variable name: JAVA_HOME and variable value: C:\Program Files\Java\jdk1.8.0_25
Please note that jdk1.8.0_25 may be vary depending on JDK version.
Click OK button on the rest of the windows left.
1-Right click on Android Studio and click on properties.
2-Replace studio64.exe in link by studio.exe.
Ok, was having this issue as well and this is what fixed it for me. For the record I'm using Windows 8.1 and Java JDK 1.8.31, all 64-bit.
The problem is with the space between "Program" and "Files" in the path set in JAVA_HOME. I've had this problem before but didn't really realize until I was checking the instructions here for setting JAVA HOME, then it all made sense.
In a nutshell, change the JAVA_HOME path from:
C:\Program Files\Java\jdk1.8.0_31
to
C:\Progra~1\Java\jdk1.8.0_31
Make sure to set the correct JDK version number for your installation. Removing the space from the path fixed everything on my system.
As noted on the page linked above,
use C:\Progra~1\ for C:\Program Files\
and C:\Progra~2\ for C:\Program Files(x86)\
depending on where you have the JDK installed on your system.
Note: Just to be clear, before making this change my system correctly echoed the value of JAVA_HOME to be C:\Program Files\Java\jdk1.8.0_31 in the command window, leading me to believe all was well. However, attempting to run %JAVA_HOME%\bin\javac reported that the path could not be found. After removing the space from the JAVA_HOME path the same command runs perfectly.
Uninstall Java 8 and clean your JDK_HOME and your JAVA_HOME enviromental paths. Then install 64bit JAVA 6 or 7 JDK of your preference.
Make sure you set the path in the SYSTEM VARIABLES not in the USER VARIABLES also.....name the variable name as JAVA_HOME and the address as C:\Program Files\Java\jdk1.8.0_25\ be sure that you didn't place any semicolon.
According to Oracle's installation notes, you should download/install JDK for the correct system. For your convenience, I have linked to it from the sentence above. If you still encounter problems, leave a comment. I have written some quick code that will tell you if your JVM is 64 or 32-bit, below. I'd suggest you run this class and leave a comment as to its output:
public class CheckMemoryMode {
public static void main(String[] args) {
System.err.println(System.getProperty("sun.arch.data.model"));
}
}
For me this turns out to be Environment Variables not being inherited.
Quick answer: reboot, than click on studio.bat, not studio.exe or studio64.exe
================ Details =================
"Right Click"-"Run as Administrator" works for me if:
** JDK_HOME or JAVA_HOME was set. (PATH didn't need to be changed for me)
** I run studio.bat, not studio.exe
** Note: By Default I am an administrator on a Microsoft Account (That Microsoft part may be affecting things), and I seldom reboot. I'm running Win8.1 64bit. I installed both JDKv1.8.0.0_25 32bit and 64 bit, and had JRE 32bit and 64 bit already installed (used by other software).
I found there was a difference in clicking on studio.bat, studio.exe, and running studio.bat from a command prompt. There is also a difference if I rebooted or not.
The difference: The System Environment Variables aren't all there depending on how I start the program.
To test:
In start menu drag a copy of "command prompt" to your desktop, then change properties so "Start In" is location of studio.bat
copy studio.bat to studio_debug.bat (one we can mess with)
drag a shortcut of studio_debug.bat to desktop for convenience.
edit studio_debug.bat (right click --> edit)
== Change:
#echo off
== to
#echo on
echo Set===================
set
echo ======================
pause
This may also help in debugging studio.bat:
== change:
"%JAVA_EXE%" %ALL_JVM_ARGS% -cp "%CLASS_PATH%" %MAIN_CLASS_NAME% %*
== to
echo =================
echo Starting: "%JAVA_EXE%" %ALL_JVM_ARGS% -cp "%CLASS_PATH%" %MAIN_CLASS_NAME% %*
pause
"%JAVA_EXE%" %ALL_JVM_ARGS% -cp "%CLASS_PATH%" %MAIN_CLASS_NAME% %*
echo =================
Now when you run studio.bat from command prompt versus double clicking you may see difference in environment variables including JAVA_HOME and PATH. If you do you have same problem as me.
The problem seems to depend on:
did you reboot since changing environment variables?
didn't seem to matter if I was local or microsoft account
may depend whether you are an administrator or other account type
whether you start using studio.bat, studio.exe, or studio64.exe
.
FYI: The actual successful startup command executed by studio.bat on my system was as follows (includes studio64.exe):
"C:\Program Files\Java\jdk1.8.0_25\bin\java.exe" "-Xms128m" "-Xmx750m" "-XX:MaxPermSize=350m" "-XX:ReservedCodeCacheSize=96m" "-ea" "-Dsun.io.useCanonCaches=false" "-Djava.net.preferIPv4Stack=true" "-Djsse.enableSNIExtension=false" "-XX:+UseCodeCacheFlushing" "-XX:+UseConcMarkSweepGC" "-XX:SoftRefLRUPolicyMSPerMB=50" "-XX:+HeapDumpOnOutOfMemoryError" "-Didea.platform.prefix=AndroidStudio" "-Didea.paths.selector=AndroidStudioBeta" -Djb.vmOptionsFile="C:\android-studio\bin\studio64.exe.vmoptions" "-Xbootclasspath/a:C:\android-studio\bin\../lib/boot.jar" -Didea.paths.selector=AndroidStudioBeta -Didea.platform.prefix=AndroidStudio -cp "C:\android-studio\bin\..\lib\bootstrap.jar;C:\android-studio\bin\..\lib\extensions.jar;C:\android-studio\bin\..\lib\util.jar;C:\android-studio\bin\..\lib\jdom.jar;C:\android-studio\bin\..\lib\log4j.jar;C:\android-studio\bin\..\lib\trove4j.jar;C:\android-studio\bin\..\lib\jna.jar;C:\Program Files\Java\jdk1.8.0_25\lib\tools.jar" com.intellij.idea.Main
Hope that helps someone else.
Just make sure that the installed version of both, Android Studio and JDK, are of either 32-bit or 64-bit. If JDK is of 32-bit and Android Studio of 64-bit or vice-verse, then it won't work though you set up JAVA_HOME.
My fix was to remove the double quotes that I had enclosed the JAVA_HOME path in.
Instead of declaring JAVA_HOME as "C\Program Files..."
I removed the " and declared JAVA_HOME as C\Program Files...
I am on Win 7, x64
I also faced the same issue. The solution which helped me was I downloaded and installed 64 bit JDK from this link and set the "java_home" variable to the new JDK installed path like C:\Program Files\Java\jdk1.7.0_45. Hope this helps.
Had the same problem after upgrading my machine from 7 to 10 had to reinstall the JDK all overgain and took me only a few seconds.
Here are the steps I followed.
Go to this link
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Agree to oracle contact agreement.Then pick your windows version in my case is 64 bit after that its ..Next..Next,,once compete you can relaunch your Android studio without any problem. Hope this helps
Here comes the solution.
Just start ANDROID STUDIO as administrator if you are using a non administrator windows profile!
If your environment variables are correct that will do the trick. Enjoy!
Android Studio Works Perfectly fine with Java 1.8 or Java 8. I was also having invalid JVM error. The reason was including ";" (semicolon) at the end of JAVA_HOME path value. The correct format for path value is:
C:\Program Files\Java\jdk1.8.0_xx (Replace xx with your current version)
Do not include ; (semicolon) at the end of JAVA_HOME value
In my case
In Control Panel -> System -> Advanced system settings -> Environment Variables there is no JDK_HOME OR JAVA_HOME
SO
I added an entry named: JDK_HOME pointing to: C:\Program Files\Java\jdk1.8.0_25\ (you have to point this to your JDK instalation path)
And all seems to work fine now
You must just install jdk1.8.0 and then right click on my computer icon and then select properties,then in left panel, select advanced system settings, then in dialog bog select Environment Variables, then in that's dialog box,in section user variables create new variable that's name must be JAVA_HOME and path is C:\Program Files\Java\jdk1.8.0(in my pc) then sytem variable section, select PATH variable and append it's end this path C:\Program Files\Java\jdk1.8.0\bin and then select ok for all dialog box and after this steps run Android studio. And for test, run cmd in windows and run this command java -version if returned a java version and ... it is installed correctly.
Note: I get answer in windows 8.1 64 bit.
This is tested on my Windows 7 64Bit machine.
Quite strange... I had the same issue - WHILE IntelliJ Idea (including the Android Plug-in) was working perfectly.
However, here is what I did to get Android Studio 1.0 working (no step missing -> maybe it will help programming beginners).
Just set up a new environment variable by...
pressing Windows-Key and typing env... you'll see "Edit the system environment variables". Click!
Now click "Environment Variables..."
Under System variables (NOT "User variables") add a new entry named JAVA_HOME and set the value to your Java folder (like C:\Program Files\Java\jdk1.8.0_25)
apply and you are good to go.
PS: I don't know why some people writing about nuclear science when they want to explain how to set the Java path..
The solution is given in the error itself, Goto My computer(Right click)-->properties-->Advanced system settings-->Environment variables-->Create new variable.
Give the following details to it:
Variable name : JAVA_HOME.
Variable value : (your path to java jdk installation folder).
To find the path for java installation, go to program files in your window installation drive (normally C drive). Find folder named JAVA, in that navigate to JDK folder.
Copy the link address from the top, and paste it in the Variable value .
Now Press Ok and once environment variable gets created restart the android studio.
Hope it helps.
if your "enviornment variables" set well, than try to update
Start > All Programs > Android Studio > Android Studio
do right click, click Properties and set android studio sdk path
in
shortcut > Target
If you are using windows 7, make sure you install jdk-xxxx-windows-x64.exe.
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
I had previously installed 32 bit instead of 64 bit version hence it was installed in program files x(86) folder. But if you install 64 bit sdk setup, its installed in program files folder.
Then set the JAVA_HOME='C:\Program Files\Java\jdk1.8.0_65'
It should work fine.
My variables pointed to other system variables so JDK_HOME was
%programfiles%\Java\jdk1.8.0_45
and i had to explicitly change it to
C:\Program Files\Java\jdk1.8.0_45
Similar for JAVA_HOME
My JAVA_HOME was pointing to c:/jre directly. So I changed it to C:/java/jre because it was confused to pick up which one to use, so I changed it to the specific one and it works for me. Note: It is better to have only one JRE install on your machine
I solved the problem in my case by deleting file
C:\Users\username.AndroidStudioX\studio64.exe.vmoptions
( x denotes the version of your android studio so it can be different ) , because I created it before to customize VM options.
It's that simple
Add the your installation path and java path to the default system path by separating the ;
Right click on My Computer-->Properties-->Advances System Setting-->Advanced -->Environment Variables-->Under System Variables category find the "Path"-->add the android installation path and java path by separating with ;...
Believe it works
If it does not work after setting paths in environment variables correctly,
Reinstall Android Studio and it worked for me.
Under my Android Studio\bin there are two folder
studio.exe and studio64.exe
I tried to run the first program and it gives me the mentioned error.
But when running studio64.exe it works.
If setting JAVA_HOME not works, install Visual Studio C++, you can download "all versions in one" installer here: https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/
I think Android does not support Java 8. Officially android need java 6 as mentioned at the below:
https://developer.android.com/sdk/installing/installing-adt.html
Here I'm providing you a good link, hope those will clear this question :
Is it possible to use Java 8 for Android development?
For crying out loud this is so VERY EASY TO Fix!!
Go to : "Control Panel\All Control Panel Items\System" once there click on "Advanced system settings" on the left hand side
The window that pops shows a box that says says Environment Variables! Click it.
Click "add new" to add new variable.
Type JAVA_HOME in the first box and in the second box the address to, IE / in my case C:\Program Files\Java\jdk1.8.0_25 save it. exit everything. THATS IT!!
Enjoy Android Studio!
Obviously for the above to work you have to install java first or how else can you use it or point to it on your pc and all that. The above instructions are amazingly mislead and complicated. For the record I am on widows 8.1, YES it works on latest windows and is ridiculously simple to fix.
-OSG
I have already installed the JDK for java which i believe has the compiler and everything i need.
Now I installed Netbeans and it is telling me that it cannot find the compiler, and to set my environment variable.
I have had my hard drive replaced i don't know if thats why I'm having trouble
variable value is
%SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
I tried to add this directly after.
;C:Program\Program Files\Java\jdk1.7.0_71\bin
as well as
;%ProgramFiles%\Java\jdk1.7.0_71\bin
It doesn't work. Please help, any suggestions .
Set the path...
Find JDK Installation Directory
First you need to know the installation path for the Java Development Kit.
Open the default installation path for the Java Development Kit
C:\Program Files\Java
There should be a subdirectory like
C:\Program Files\Java\jdk1.6.0_10
Set the JAVA_HOME Variable
Once you have the JDK installation path:
Right-click the My Computer icon on
your desktop and select Properties.
Click the Advanced tab. Click the
Environment Variables button. Under System Variables, click New.
Enter the variable name as JAVA_HOME.
Enter the variable value as the installation path for the Java Development Kit.
Click OK.
Click Apply Changes.
Restart pc
Read more here http://www.robertsindall.co.uk/blog/setting-java-home-variable-in-windows/
You have to set your JAVA_HOME to your jdk (something like that C:\Program Files\Java\jdk1.7.0_71) and add to te Path the bin folder of the jdk (someting like C:\Program Files\Java\jdk1.7.0_71\bin)
declare JAVA_HOME = C:Program\Program Files\Java\jdk1.7.0_71\
add bin in path with PATH = %PATH%;%JAVA_HOME%\bin
try javac or java
I have installed Android Studio and JDK. I have set my variable to the JDK folder. Now, when launching the program I receive an error message stating, "The environment variable JAVA_HOME (with the value of C:\ProgramFiles\Java\jdk1.8.0) does not point to a valid JVM Installation.
Can you please assist with this?
Thanks!
That path to jdk1.8.0 is likely wrong. Are you sure its ProgramFiles and not "Program Files" and that the rest of your path is correct?
hi guys i to occurred with same problem but i resolved as if your JAVA_HOME JDK is referring with another IDE then this problem will occur , so first delete existing java_home and take a location of ur jdk/bin and paste into PATH field in environment> system variables after setting into that path field save it then start your ADK it will work,.
Android SDK installation doesn't find JDK is not the same release as this, and the solution "back" then "next" doesn't work.
I have tried installing various versions of Java and nothing seems to be working. I've been trying to get this installed for the last 3 days. Solutions I have tried that do NOT work:
Pushing the back button then the next button.
Adding an Environment Variable for JAVA_HOME that points to the System32 path and the actual java install directory.
Installing various versions of Java. (Java 6 and Java 7)
The install file is called installer_r20.0.3-windows and is the current exe available at http://developer.android.com/sdk/index.html
Ok, looking at to your JAVA_HOME path which is C:\Program Files\Java\jdk1.6.0_34\bin I suggest you to change it as C:\Program Files\Java\jdk1.6.0_34\. There is no need to add bin folder's path in the JAVA_HOME Path.
On my Win7 Ultimate 64 bits/ i need multiple things
Set SystemEnvironment Variable JAVA_HOME = C:\Program Files\Java\jdk1.7.0_07
Add the same value to SystemEnvironment Variable PATH, but make sure to put it before system32 path
PATH = C:/Program Files/Java/jdk1.7.0_07;C:\Windows\system32; ....... (... = current value)
and most important , i guessed. Rename c:\windows\system32\java.exe -> c:\windows\system32\java.exe.old
Restart the installer (my case = installer_r20.0.3-windows.exe )
Voila!
This might help safe other's time
Setting JAVA_HOME environment variable in System variable to C:\Program Files\Java\jdk1.7.0_07\ did solve my problem.
A couple of points to note.
No need to specify bin or jre folder name.
You will need to cancel and restart the Android SDK installation. Previous/Next may not work.
I just copied the folder name from Windows explorer address bar. No need to replace the \ with /.