简体   繁体   中英

ADT Bundle can't find Java

When I open adt-bundle-windows-x86_64-20131030 and click on the Eclipse.exe application to install it I get the message; A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java Virtual Machine was found after searching the following locations: C:\\users\\username\\desktop\\development\\adt-bundle-windows-x86_64-20131030\\eclipse\\jre\\bin\\javaw.exe javaw.exe is your current PATH.

I do have JDK, and JRE on this computer, I need them to view the emulator for my job. I have tried uninstalling and reinstalling Java with the same results. What can I do to fix this problem?

You will have to put Java in your classpath, so Eclipse knows where it can find Java. See here: http://docs.oracle.com/javase/tutorial/essential/environment/paths.html for info on how to do this.

从Oracle网站安装32位版本的jdk

put the path of your java bin directory under Environment variables. System->Advanced System Settings->Environment Variables->path

Open command prompt. use java and javac commands to know if you have successfully installed java and compiler.

if it doesn't help, this question has a lot of helpful answers Eclipse - no Java (JRE) / (JDK) ... no virtual machine

From what you said:
"'java' is not recognized as an internal or external command, operable program or batch file"

Your java may not have been installed correctly, or, it was installed, but you did not set path to it correctly. It is not a problem with ADT, any of your programs that need Java will not be able to find it.

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