0% found this document useful (0 votes)
476 views15 pages

Android Studio - No JVM Installation Found

The user was unable to launch Android Studio after installation due to a "No JVM Installation found" error, despite having installed a 64-bit JDK; various solutions like setting JDK_HOME and rebooting did not resolve the issue. The document provides the user's system details and steps already tried in an effort to get help troubleshooting the launch error.

Uploaded by

m_faisal_y
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
476 views15 pages

Android Studio - No JVM Installation Found

The user was unable to launch Android Studio after installation due to a "No JVM Installation found" error, despite having installed a 64-bit JDK; various solutions like setting JDK_HOME and rebooting did not resolve the issue. The document provides the user's system details and steps already tried in an effort to get help troubleshooting the launch error.

Uploaded by

m_faisal_y
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Android Studio - No JVM Installation

found

up
vote I'm having issues trying to boot-up Android Studio
28
down When I try to launch it after installation I'm getting this error:
vote
favorit No JVM Installation found. Please install a 64 bit JDK.
e
3
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:

java

android jvm android-studio


asked Jul 22 '14 at 22:06

share|improve this question

edited Jul 26 '14 at 0:54

Syed Qarib
2,15031228
Just for reference, my JAVA_HOME is identical to yours, so you can rule that out
as an issue as long as you're sure your JDK is 64-bit. Veselin Romic Jul 22 '14
at 22:15
I installed x64 bit version of JDK .. also as you can see my JDK path its not
inside Program Files (x86) folder so that clears this also .. Syed Qarib Jul
22 '14 at 22:18
Just be on the safe side, please include the output of java -version in the
question body. ozbek Jul 23 '14 at 2:01
I think you cant run Android Studio with Java 8. I installed Studio on a Mac
1 Yosemite today and studio complained that it needed Java 6. Try installing java 7.
On windows I used to have a Java 7 installed. Varun Jul 26 '14 at 1:39
Well, that's my assumption too that it doesn't runs with java 8 .. but why and
where it is reported ? as I can't see any where this thing listed .. Syed Qarib Jul
26 '14 at 23:54
show 1 more comment

15 Answers
active oldest votes
up vote 26
down vote I had the same problem. I tried setting all kind of paths but nothing worked. So
accepted
I had to do some dirty fix. The only problem with this is that it opens a blank
+25
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>androidstudio\bin\studio.bat

Now you can access it by clicking it from the menu.


Note : I tried it with 8, It works.
answered Jul 31 '14 at 8:25
share|improve this answer

edited Aug 1 '14 at 7:13

bitkot
2,0291616
This looks promising .. will give it a go .. will accept the answer if it
works Syed Qarib Aug 3 '14 at 10:36
Such a simple answer that works great!! Shamikul Amin Aug 25 '14 at
18:41
No studio.bat in bin folder of Android Studio RC 1 gderaco Nov 29 '14
13
at 12:32
That's correct, you have to create your own file named "studio.bat".
Alexander Farber Dec 18 '14 at 12:49
FYI: I was getting the same error but in my case I was pointing it to the
bin folder in my Java_Home path. Once I changed it to its parent folder
to C:\Program Files\Java\jdk1.8.0_25, everything went smooth. Vincy
Dec 23 '14 at 14:43
show 3 more comments
up vote 19
down vote

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 !
edited Dec 15 '14 at
10:17

answered Jul 30 '14 at


0:29

share|improve this
answer
Xavier Delamotte
rdean400
2,075924
20615
My environment variable is already JAVA_HOME .. Syed Qarib Jul 30 '14
at 5:49
What does %JAVA_HOME%\bin\java -version show for output?
rdean400 Jul 31 '14 at 2:08
just a crazy thought, maybe rename the JAVE_HOME variable a second
time as JAVA_HOME, in case there is a space or non-printable character
interfering? Draco M. Jul 31 '14 at 18:57
Thanks, this worked for me! RealityDysfunction Sep 24 '14 at 19:31
JAVA_HOME did the trick for me thanx Dusty Roberts Nov 12 '14 at
1
13:23
show 1 more comment

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.
up
vote 2
down
vote

answered Jul 29 '14 at 2:36


share|improve this answer
Martin Revert
618412
I know I can make it work if I downgrade the JAVA version .. but why should I
do so ? thats the question .. Syed Qarib Jul 29 '14 at 13:49

As I'm trying to suggest, your JAVA enviromental paths are maybe dirty/duped
from previous installations and confusing Android Studio. Intellij Idea is nearly
JAVA 8 compatible, but you'll cannot exploit any JAVA 8 feature because Android
doesn't support it yet. Just double check to clean it all and install JAVA 7, it will
be fine. Martin Revert Jul 30 '14 at 4:24
Because you can't use Java 8 in Android. user3029413 Aug 1 '14 at 23:49
great sio\\olution... Java 8 is not compatible with Android Studio... Babul Patel
Nov 12 '14 at 5:58
add a comment
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 {

up
public static void main(String[] args) {
vote 1
down System.err.println(System.getProperty("sun.arch.data.model"));
}
vote
}

answered Jul 26 '14 at 1:23


share|improve this answer

edited Jul 27 '14 at 4:46

hd1
12.8k22036
I have installed the same JDK .. JDK runs fine .. as I have no problems running
programs over eclipse .. Syed Qarib Jul 26 '14 at 23:52
Please compile/run the code I just added in and let me know what it says. hd1
Jul 27 '14 at 4:46
it outputs 64 .. Syed Qarib Jul 29 '14 at 13:48
usually for all idea product there is a 'bat' launcher in bin directory. it clearly
states that JDK_HOME and JAVA_HOME both are accepted. Try to launch it and
see what will happend after. At least if there is a problem u will see it in console.
Then u can look into source of bat file. It is relly self describing. simar Jul 30
'14 at 6:18
add a comment
up vote 1
down
1-Right click on Android Studio and click on properties.
vote
2-Replace studio64.exe in link by studio.exe.
share|improve this answer

answered Aug 19 '14 at 15:08

fatah amine
111
add a comment
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.
up vote 1
down
vote

edited Dec 23 '14 at 8:34 answered Dec 17 '14 at 13:38


share|improve this answer
vusan
6abhishek jha
2,227848
223
Your sample path helped me .. thank you very much :) shihabudheen Dec 27
'14 at 9:52
add a comment

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
up vote cmd in windows and run this command java -version if returned a java version
1 down and ... it is installed correctly.
vote

Note: I get answer in windows 8.1 64 bit.


answered Dec 22 '14 at 11:47
share|improve this answer

edited Dec 25 '14 at 8:56


Farshid
23512

add a comment
up vote
0 down I think Android does not support Java 8. Officially android need java 6 as mentioned
vote
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?

answered Aug 1 '14 at 4:31


share|improve this answer
VVB
1,2861210
No. Android supports JDK 7. You should check Android Studio instead of ADT.
developer.android.com/sdk/installing/studio.html Dalinaum Oct 17 '14 at 6:10
add a comment
Here comes the solution.
Just start ANDROID STUDIO as administrator if you are using a non administrator
windows profile!
up vote If your environment variables are correct that will do the trick. Enjoy!
0 down
vote
answered Nov 6 '14 at 22:16
share|improve this answer
Nico
91
This has nothing to do with the problem. Try yourself Desolator Dec 7 '14 at
15:31
add a comment
up vote
0 down
vote

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:


1. did you reboot since changing environment variables?
2. didn't seem to matter if I was local or microsoft account

3. may depend whether you are an administrator or other account type


4. 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:\androidstudio\bin\studio64.exe.vmoptions" "-Xbootclasspath/a:C:\androidstudio\bin\../lib/boot.jar" -Didea.paths.selector=AndroidStudioBeta
-Didea.platform.prefix=AndroidStudio -cp "C:\androidstudio\bin\..\lib\bootstrap.jar;C:\androidstudio\bin\..\lib\extensions.jar;C:\android-studio\bin\..\lib\util.jar;C:\androidstudio\bin\..\lib\jdom.jar;C:\android-studio\bin\..\lib\log4j.jar;C:\androidstudio\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.


answered Nov 23 '14 at 15:01

share|improve this answer


Paul
1
add a comment
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 viceverse, then it won't work though you set up JAVA_HOME.
up vote 0
down
vote

answered Dec 20 '14 at 3:59


share|improve this answer
kamol
9519
add a comment

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)
up vote 0
Do not include ; (semicolon) at the end of JAVA_HOME value
down
vote
edited Dec 23 '14 at 8:34 answered Oct 25 '14 at 4:59
share|improve this answer
Farshid
23512

Nigel Crasto
15026

add a comment
For crying out loud this is so VERY EASY TO Fix!!
1. Go to : "Control Panel\All Control Panel Items\System" once there click on
"Advanced system settings" on the left hand side
2. The window that pops shows a box that says says Environment Variables!
Click it.
3. Click "add new" to add new variable.
4. 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!!

up vote
0 down
vote
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
edited Dec 23 '14 at 8:49 answered Dec 2 '14 at 3:32
share|improve this answer
Farshid
23512
add a comment
up vote
0 down In my case
vote

Orlando S. Gondar
91

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
edited Dec 23 '14 at 8:49 answered Oct 20 '14 at 18:24
share|improve this answer
Farshid
23512

Alberto Saint Martin


1

add a comment
up vote 0
down vote 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...
1. pressing Windows-Key and typing env... you'll see "Edit the system
environment variables". Click!
2. Now click "Environment Variables..."
3. 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)
4. 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..
share|improve this answer edited Dec 28 '14 at 9:19 answered Dec 28 '14 at 9:12

Martin Pfeffer

163210
add a comment

protected by Community Dec 14 '14 at 19:10


Thank you for your interest in this question. Because it has attracted low-quality answers,
posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions


tagged java android jvm android-studio or ask your own
question.

With android studio no jvm found, JAVA_HOME has been set

I have a JAVA_HOME variable set to:


C:\Program Files (x86)\Java\jdk1.7.0_45\ And the path to the jdk is:
C:\Program Files (x86)\Java\jdk1.7.0_45
However when I try to start android studio I get the error:
No JVM installation found. Please install a 64 bit JDK. If you already have a
JDK installed define a JAVA_HOME variable in Computer > System
up vote 18 Properties > System Settings > Environment Variables.
down vote
favorite

java

android install android-studio

asked Nov 17 '13 at 16:33

share|improve this question

user2853108
1582311
is your JDK 64 bit ? Rahul Gupta Nov 17 '13 at 16:36
yes it is 64 bit user2853108 Nov 17 '13 at 16:38
Is this a system or a user environment variable. That might make
a difference? (Not sure) Jason Lowenthal Nov 17 '13 at 16:40
It is an environment variable, have tried both, doesn't appear to
make a difference user2853108 Nov 17 '13 at 16:44
3

if you jdk is 64 bit it should be installed in "C:\Program


Files\Java". "C:\Program Files (x86)\Java" is for 32 bits installs.
Alejandro Dobniewski Apr 25 '14 at 19:51

add a comment
3 Answers
active oldest votes

It says that it should be a 64-bit JDK. I have a feeling that you installed (at a
previous time) a 32-bit version of Java. The path for all 32-bit applications in
Windows 7 and Vista is:
C:\Program Files (x86)\
You were setting the JAVA_HOME

variable to the 32-bit version of Java. Set


your JAVA_HOME variable to the following:
C:\Program Files\Java\jdk1.7.0_45

up vote 41
down vote
accepted

If that does not work, check that the JDK version is 1.7.0_45. If not, change
the JAVA_HOME variable to (with JAVAVERSION as the Java version number:
C:\Program Files\Java\jdkJAVAVERSION

answered Nov 17 '13 at 17:27

share|improve this answer

hichris123
4,68782140
2

Thank you, that was a really stupid mistake. user2853108


Nov 17 '13 at 17:50
This was my problem as well, thanks for the clarification.
theJerm Aug 22 '14 at 3:26

add a comment

up
Here is the tutorial :- http://javatechig.com/android/installing-android-studio and
vote 5 http://codearetoy.wordpress.com/2010/12/23/jdk-not-found-on-installing-androiddown sdk/
vote

Adding a system variable JDK_HOME with value c:\Program


Files\Java\jdk1.7.0_21\ worked for me. The latest Java release can be downloaded
here. Additionally, make sure the variable JAVA_HOME is also set with the above
location.
Please note that the above location is my java location. Please post your location in

the path
answered Nov 17 '13 at 16:41

share|improve this answer

Rahul Gupta
2,3582423
add a comment

When you set to install it "for all users" (not for the current user only), you won't
need to route Android Studio for the JAVA_HOME. Of course, have JDK installed.
answered May 24 '14 at 21:24
up
vote 1
down
vote
share|improve this answer

ejmin
364
add a comment
protected by Community Jul 7 '14 at 19:01

Thank you for your interest in this question. Because it has attracted low-quality answers,
posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?
Not the answer you're looking for? Browse other questions tagged java
install android-studio or ask your own question.

android

You might also like