Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have been trying to set up my android to begin my development lessons all day without success. I have installed the Java JDK kit and I'm trying to install the android sdk but this is the error I keep getting all day:

"failed to find java version for 'C:windowssystem32java.exe':[2] The system cannot find the specified file.

The Java version I installed is jdk1.7.0_03. I have gone to the environment variables and added the path to the java file (C:Program FilesJavajdk1.7.0_03in and C:Program FilesJavajdk1.7.0_03injavac) and I still get the same error. The android sdk version I am trying to install is "installer_r18-windows.exe". Can someone help me?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
189 views
Welcome To Ask or Share your Answers For Others

1 Answer

The problem is there are two Java files and the installer picks the first one that it finds; The solution, however, is simple:

rename c:windowssystemjava.exe to c:windowssystemjava.exe.orj, then restart the installer, and everything should be fine.

It will now use the version of java.exe installed in Program FilesJava instead which solves the issue.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...