Android Environment build--eclipse installation Error

Source: Internet
Author: User

The first step in Android learning is to build a development environment. Experience to know, the original this step is not as simple as it may be I am too lucky. Let me meet

A lot of problems.

First, when installing Eclipse.

"Problem 1"

"Cause of the problem":

(1) The Eclipse installation path may contain Chinese;

(2) The version of Eclipse is inconsistent with the JDK version;

"Solution":

(1) Replace the installation path to ensure that it does not carry Chinese;

(2) The version of Eclipse is consistent with the JDK version, such as installing a 32-bit JDK that corresponds to the use of 32-bit eclipse. Actually the most

All together, the operating system is consistent with the number of bits.

After the examination found that I encountered the problem is (2). The operating system is 64-bit, resulting in a 32-bit JDK and a 64-bit installation

Eclipse...... To be dead.

Finally, I reinstalled a 64-bit JDK. When you're done installing eclipse, the result:

"Problem 2"

Error:

A Java RunTime Environment (JRE) or Java development Kit (JDK) must be available on order to run

Eclipse. No Java Virtual machine is found after searching the following Locations:d:\program

Files\eclipse\jre\bin\javaw.exe Javaw.exe

"Cause of the problem":

(1) The JDK or JRE is not installed properly. (How possible!) )

(2) or an environment variable configuration error. (This is a reliable!) )

"Solution":

Set the following in the system variable: (check it again)

Variable name: Java_home variable Value:D:\Program files\java\jdk1.8.0_25 (JDK installation path)

Variable name: CLASSPATH variable Value: .; %java_home%\lib;

Variable name: Path variable value: %java_home%\bin;

Verify that the environment variable is correct, but the error continues. The error may be on eclipse.

Set the JRE used by eclipse to be the natively installed JDK directory, locate the Eclipse.ini file in the Eclipse installation directory, and manually add the path to the JDK.

-vm

D:/program Files/java/jdk1.8.0_25/bin/javaw.exe

  

Ok finally, it runs successfully.

The order of the JRE to look for when Eclipse starts:

If the-VM parameter is configured in the Eclipse.ini, then the JRE specified by this parameter is used; Otherwise, check to see if there is a JRE in the Eclipse installation directory

folder, if any, use this JRE; Otherwise, go to the system to find the installed JRE, if you can not find the error.

interpretation of the Eclipse.ini file. Please refer to:http://notfatboy.iteye.com/blog/587623

The following article describes an issue that is encountered when installing the ADT plugin.

Android Environment build--eclipse installation Error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.