简体   繁体   中英

Android SDK wont open

I have tried a lot of the solutions to this problem I have seen here but none seem to work for me. Basically when I run the Android batch file a CMD box pops up for a millisecond and closes again. I can see that it says: "find_java.exe was unexpected at this time".

I have no idea why this is happening. I think it might be because I am not installing it onto the main hard drive that my OS is on, which is an SSD, but instead installing it onto a second drive.

So the file path to the JDK is: F:\\Program Files (x64)\\Java\\jdk1.7.0_11

Anybody know how I could fix this? Thanks

I ran into the same problem. I found a way to fix it. Go to the System32 folder and change java to java.exe, hopefully this will work. Also make sure you have jdk and jre installed. That's all.

Assuming you are running windows make sure that you have a system variable named JAVA_HOME set to point to your Java home directory

JAVA_HOME = F:\\Program Files (x64)\\Java\\jre6 (or whatever version your JRE is)

and add

F:\\Program Files (x64)\\Java\\jdk1.7.0_11\\bin to the PATH system variable

Notice the \\bin added to the end there

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