简体   繁体   中英

Can't open Android studio. (issues related to JDK)

As mentioned in Question Title, I am unable to open Android Studio.

When I am trying to open it, below message is shown:

"The environment variable JAVA_HOME (with the value of 
 C:\Program Files\Java\jdk.1.8.0_31\bin;) does not point 
 to a valid JVM installation." 

How can I solve this problem?

尝试从JAVA_HOME系统变量的末尾删除\\ bin。

Your path variable for Java Installation is probably corrupt maybe due to a re-install or you didn't set it in the first place.

This can be easily fixed.

First install the latest version of JAVA SE from this webpage.

To set the temporary path of JDK (in windows), you need to follow following steps:

  • Open command prompt
  • copy the path of jdk/bin directory under program files. note it's "jdk" not "jre".
  • write in command prompt: set path=*copied_path*

For Example:

set path=C:\Program Files\Java\jdkx.x.x_23\bin

where xxx are the jdk version related number

It is useful to set the PATH environment variable permanently so it will persist after rebooting. You can read more about how to do this over here: Set PATH and CLASSPATH

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM