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

Categories

0 votes
209 views
in Technique[技术] by (71.8m points)

java - Android installation issues

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

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

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...