Android Studio - JVM installation not found

I'm having trouble downloading Android Studio

When I try to run it after installation, I get this error:

No JVM Installation found. Please install a 64 bit JDK.




My current system specification:

Operating System: Windows 8.0 64 bit version
Installed JDK: JDK 1.8.0




What I tried:

I tried to report an error, and also in most solutions, set the JDK_HOME variable in environment variables to my JDK path (version 64 bit), 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 saw these solutions and tried, but none of them work, so do not mark it as a duplicate of any of them:
Android Studio installation on Windows 7 failed, JDK not found
No jvm found with Android studio, JAVA_HOME installed
Android Studio crashes on 64-bit Windows 8


Android Studio does not start after installation




Here is the cmd output for java version:

enter image description here

+89
java android android-studio jvm
Jul 22 '14 at 22:06
source share
31 answers
  • one
  • 2

I had the same problem. I tried to set all the paths but nothing worked. So I had to make a dirty fix. The only problem is that it opens an empty command prompt window.

I did the following to make it work.

  • Go to the AndroidStudio installation folder.
  • go bin and open studio.bat in a 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 properties .
  • You will see 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 on it in the menu.

Note: I tried it with 8, it works.

+69
Jul 31 '14 at 8:25
source share

I reproduced your problem on my Windows 8.1 system:

  • Installed 64-bit JDK 1.8.0_11 .
  • The latest Android Studio package is installed.
  • Went to Control Panel β†’ System β†’ Advanced System Settings β†’ Environment Variables ...
  • Added JDK_HOME pointing to my 64-bit JDK.
  • Studio64.exe is running

I received the same message as you. Thinking it could be an environment variable, I did the following:

  • Went to Control Panel β†’ System β†’ Advanced System Settings β†’ Environment Variables ...
  • Changed the name JDK_HOME to JAVA_HOME .
  • Studio64.exe is running

It came successfully!

+48
Jul 30 '14 at 0:29
source share

1. Download the 64-bit version of the JDK from here

enter image description here

  1. As shown in the following figure, go to Control Panel System and Security Advanced system settings Environment Variables New (system variables)

  2. Then add the variable name: JAVA_HOME and the variable value: C: \ Program Files \ Java \ jdk1.8.0_25

Please note that jdk1.8.0_25 may vary depending on the version of JDK. enter image description here

  1. Click OK on the rest of the windows.
+30
Jan 13 '15 at 2:30
source share

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

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

+11
Aug 19 '14 at 15:08
source share

Ok, I had this problem and this is what fixed it for me. For writing, I use Windows 8.1 and Java JDK 1.8.31, all 64-bit.

The problem is a gap between the "Program" and the "Files" in the path set to JAVA_HOME . I used to have this problem, but I did not understand, until I checked the instructions here to install JAVA HOME , then all this made sense.

In a nutshell, change the JAVA_HOME path:

C:\Program Files\Java\jdk1.8.0_31

to

C:\Progra~1\Java\jdk1.8.0_31

Be sure to set the correct JDK version number for your installation. Removing space from the path eliminates everything in my system.

As indicated on the page above

use C:\Progra~1\ for C:\Program Files\

and C:\Progra~2\ for C:\Program Files(x86)\

depending on where the JDK is installed on your system.

Note. Before making this change, my system correctly repeated the value of JAVA_HOME as C:\Program Files\Java\jdk1.8.0_31 in the command window, making me believe that everything was fine. However, an attempt to start %JAVA_HOME%\bin\javac reported that the path was not found. After removing the space from the JAVA_HOME path, the same command runs fine.

+7
Jan 21 '15 at 20:26
source share

Uninstall Java 8 and clear your JDK_HOME and your JAVA_HOME surrounding paths. Then install 64-bit JAVA 6 or 7 JDK from your preference.

+3
Jul 29 '14 at 2:36 on
source share

Make sure you set the path to SYSTEM VARIABLES , and not to USER VARIABLES , also ..... name the variable name as JAVA_HOME and the address as C:\Program Files\Java\jdk1.8.0_25\ make sure you do not place the dot with a comma.

+2
Dec 17 '14 at 13:38
source share

According to Oracle installation notes , you must download / install the JDK for the correct system . For your convenience, I contacted him from the above suggestion. If you are still having problems, leave a comment. I wrote a short code that will tell you if your JVM is 64 or 32-bit below. I suggest you run this class and leave a comment regarding its output:

 public class CheckMemoryMode { public static void main(String[] args) { System.err.println(System.getProperty("sun.arch.data.model")); } } 
+1
Jul 26 '14 at 1:23
source share

Just make sure that the installed version of both Android Studio and the JDK has either a 32-bit or a 64-bit version. If the JDK has 32-bit and Android-studio 64-bit or vice versa, then this will not work if you configured JAVA_HOME.

+1
Dec 20 '14 at 3:59
source share

The solution is set by the error itself, Goto My computer (Right-click) β†’ Properties β†’ Advanced system settings β†’ Environment variables β†’ Create a new variable.

Provide the following data:

Variable Name: JAVA_HOME.

Variable value: (your path to the java jdk installation folder).

To find the path to install java, browse to the program files on your windows installation disc (usually a C drive). Locate the folder named JAVA in which the JDK folder is located.

Copy the link address above and paste it into the value of the variable.

Now click "OK", and after the environment variable is created, restart android studio.

Hope this helps.

+1
Feb 08 '15 at 6:52
source share

My fix was to remove the double quotes in which I enclosed the JAVA_HOME path.

Instead of declaring JAVA_HOME as "C \ Program Files ..."

I deleted "and declared JAVA_HOME as C \ Program Files ...

I am on Win 7, x64

+1
Jun 22 '15 at 19:37
source share

I also ran into the same problem. The solution that helped me downloaded and installed the 64-bit JDK from this and set the variable " java_home " to the new JDK installed path, like C: \ Program Files \ Java \ jdk1.7.0_45. Hope this helps.

+1
Jul 01 '15 at 9:41
source share

The same problem after updating my machine from 7 to 10 I had to reinstall the JDK all overload 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 the oracle agreement. Then select your version of Windows in my case - 64 bits, after which it ..Next..Next, after you compete, you can restart your Android studio without any problems. Hope this helps

+1
Jun 15 '16 at 23:02
source share

In my case

In Control Panel -> System -> Advanced system settings -> Environment Variables no JDK_HOME OR JAVA_HOME

SO

I added an entry with the name: JDK_HOME , pointing to: C: \ Program Files \ Java \ jdk1.8.0_25 \ (you have to point this to the JDK installation path)

And everything seems to be working fine now

0
Oct. 20 '14 at 18:24
source share

Android Studio Works works fine with Java 1.8 or Java 8 . I also had the wrong JVM error. The reason was that ";" (semicolon) at the end of the value of the JAVA_HOME path. The correct format for the path value is:

C: \ Program Files \ Java \ jdk1.8.0_xx (replace xx with the current version)

Do not turn on ; (semicolon) at the end of the JAVA_HOME value

0
Oct. 25 '14 at 4:59
source share
  • For me, this turns out to be environment variables that are not inherited.
  • Quick answer: reboot, and not 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 is installed. (PATH did not need to be changed for me) ** I am running studio.bat, not studio.exe ** Note. By default, I am a Microsoft account administrator (this part of Microsoft may affect things), and I rarely reboot. I am running Win8.1 64bit. I installed both 32 bit and 64 bit JDKv1.8.0.0_25, and had a 32-bit and 64-bit version of the JRE already installed (used by other software).

  • I found that there is a difference in clicking on studio.bat, studio.exe and running studio.bat from the command line. There is also a difference if I rebooted or not.

  • The difference: system environment variables aren’t everything, depending on how I run the program.

  • To check:

  • From the Start menu, drag a copy of the "command line" to the desktop, then change the properties to "Start Logging In" - this is the location of studio.bat

  • copy studio.bat to studio_debug.bat (one of them can be linked)
  • drag and drop the studio_debug.bat shortcut to your desktop for convenience.
  • edit studio_debug.bat (right click -> edit)

== Edit:

 @echo off 

== to

 @echo on echo Set=================== set echo ====================== pause 
  • It can 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 start studio.bat from the command line or by double-clicking, you can see the difference in environment variables, including JAVA_HOME and PATH. If you have the same problem as me.

  • The problem seems to depend on:

    • Have you rebooted with changing environment variables?
    • it doesn't seem to matter if I was a local or Microsoft account.
    • may depend on whether you are an administrator or another type of account.
    • Are you starting to use studio.bat, studio.exe or studio64.exe
  • .

  • FYI: The actual successful launch command executed by studio.bat on my system was as follows (including 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: SoftRefLRMBolmsp XX: + HeapDumpOnOutOfMemoryError "" -Didea.platform.prefix = AndroidStudio "" -Didea.paths.selector = AndroidStudioBeta "-Djb.vmOptionsFile =" C: \ android-studio \ bin \ studio64.exe.vmoptions "" -Xbootclpath 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 \ jn a.jar; C: \ Program Files \ Java \ jdk1.8.0_25 \ lib \ tools.jar "com.intellij.idea.Main

  • Hope this helps someone else.

0
Nov 23 '14 at 15:01
source share

You just need to install jdk1.8.0, and then right-click on the computer icon, and then select properties, then select additional system settings in the left pane, then select "Environment Variables" in the dialog box, then in this dialog box in the user section the variables create a new variable whose name should be JAVA_HOME and the path is C:\Program Files\Java\jdk1.8.0 (on my computer), then the sytem variable section, select the PATH variable and add it to the end of this C:\Program Files\Java\jdk1.8.0\bin path C:\Program Files\Java\jdk1.8.0\bin , and then click ok for all dialogs x windows and following these steps runs Android Studio. And for the test, run cmd on Windows and run this java -version if it returns the java version and ... it is installed correctly.

Note. I get a response in Windows 8.1 64 bit.

0
Dec 22 '14 at 11:47
source share

This has been tested on my Windows 7 64Bit computer.

Strange enough ... I had the same problem - WHILE IntelliJ Idea (including Android Plug-in) worked fine.

However, here is what I did to get Android Studio 1.0 to work (without a step -> maybe this will help novice programmers).

Just set up the new environment variable with ...

  • pressing the Windows key and entering env ... you will see "Edit system environment variables". Click!
  • Now click "Environment Variables ..."
  • Under System Variables (NOT "User Variables"), add a new entry called JAVA_HOME and set the value to your Java folder (for example, C:\Program Files\Java\jdk1.8.0_25 )
  • applicable and you are good to go.

PS: I don’t know why some people write about nuclear science when they want to explain how to set the Java path.

0
Dec 28 '14 at 9:12
source share

My JAVA_HOME pointed directly to c:/jre . So I changed it to C:/java/jre because it was embarrassed to choose which one to use, so I changed it to a specific one and it works for me. Note. It is better to have only one JRE installation on your computer.

0
Jan 08 '15 at 17:44
source share

if your "environment variables" are set well than trying to update Start> All Programs> Android Studio> Android Studio

right click, click Properties and set the sdk path for android studio

at

shortcut> goal

0
Sep 12 '15 at 9:59
source share

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 Earlier, I installed the 32-bit version instead of the 64-bit version, so it was installed in the x program folder (86 ) But if you installed the 64-bit sdk setting, it was installed in the program files folder. Then set JAVA_HOME = 'C: \ Program Files \ Java \ jdk1.8.0_65' It should work fine.

0
Jan 07 '16 at 5:02
source share

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

Similarly for JAVA_HOME

0
Apr 28 '16 at 10:11
source share

I solved the problem in my case by deleting the file

C: \ Users \ username.AndroidStudioX \ studio64.exe.vmoptions

(x denotes the version of your android studio, so it may be different) , because I created it earlier to configure the parameters of the virtual machine. It is so simple

0
Dec 16 '17 at 23:36
source share

Add your installation path and Java path to the system default path, separated;

Right-click on My Computer -> Properties β†’ Extension System Setting -> Advanced β†’ Environment Variables -> In the System Variables category, find the β€œPath” β†’ add the Android installation path and the Java path, separating them; ...

Believe it works

0
Jun 19 '18 at 9:08
source share

If it does not work after properly setting the paths in the environment variables,
Reinstall Android Studio and it worked for me.

0
Aug 24 '18 at 16:30
source share

There are two folders under my Android Studio \ bin

studio.exe and studio64.exe

I tried to run the first program and it gives me the error mentioned.

But when running studio64.exe it works.

0
Jul 10 '19 at 18:38
source share

I think Android does not support Java 8. Officially, Android needs java 6, as mentioned below:

https://developer.android.com/sdk/installing/installing-adt.html

Here I give you a good link, hope this clears this question:

Is it possible to use Java 8 for Android development?

-one
Aug 01 '14 at 4:31
source share

Here is the solution.

Just run ANDROID STUDIO as administrator if you use a profile profile without an administrator!

If the environment variables are correct, this will do the trick. Enjoy it!

-one
Nov 06 '14 at 22:16
source share

For screaming out loud, it's SO VERY EASY To Eliminate!

  • Go to the "Control Panel \ All Control Panel Items \ System" section, and then click "Advanced System Settings" on the left side

  • A window appears in the window that appears, labeled Environment Variables ! Click on it.

  • Click Add New to add a new variable.

  • Enter JAVA_HOME in the first field, and in the second - the address, in IE / in my case C:\Program Files\Java\jdk1.8.0_25 save it. exit all. THIS IS IT!!

Enjoy Android Studio! Obviously, to work above, you must first install java, or how else can you use it or point to it on your computer and all that. The above instructions are surprisingly misleading and complicate the situation. For the record I am the widows of 8.1, YES it works on the last windows and it’s ridiculously simple to fix.

-OSG

-one
Dec 02 '14 at 3:32
source share

Control Panel β†’ System β†’ Advanced System Settings β†’ Environment Variables

I changed JAVA_HOME to JAVA and changed JAVA to JAVA_HOME again.

and its performance.

-one
May 28 '16 at 4:52 am
source share
  • one
  • 2



All Articles