Android Studio - No JVM Installation found

243,375

Solution 1

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.

Solution 2

I reproduced your issue on my Windows 8.1 system :

  1. Installed 64-bit JDK 1.8.0_11.
  2. Installed latest Android Studio Bundle.
  3. Went to Control Panel -> System -> Advanced system settings -> Environment Variables...
  4. Added JDK_HOME pointing to my 64-bit JDK.
  5. Launched studio64.exe

I got the same message you did. Thinking that it might be the environment variable, I did the following :

  1. Went to Control Panel -> System -> Advanced system settings -> Environment Variables...
  2. Changed the name of JDK_HOME to JAVA_HOME.
  3. Launched studio64.exe

It came up successfully !

Solution 3

1 .Download 64 bit version of JDK from here

enter image description here

  1. As shown in next picture, go to Control Panel -> System and Security -> Advanced system settings -> Environment Variables -> New (System variables)

  2. 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. enter image description here

  1. Click OK button on the rest of the windows left.

Solution 4

1-Right click on Android Studio and click on properties.

2-Replace studio64.exe in link by studio.exe.

Solution 5

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.

Share:
243,375
Qarib Haider
Author by

Qarib Haider

Web and mobile application expert LinkedIn

Updated on July 25, 2020

Comments