Common problems and solutions that eclipse can't run

Source: Internet
Author: User

1. The following error occurred while running eclipse: A java Runtime Environment (JRE) or Java Development Kit (JDK) must be .... This error occurs because the JDK is not installed, or the JDK environment variable is not configured. Please install the corresponding version of the JDK and configure the environment variables, such as the eclipse version of 32-bit, then the JDK should also choose a 32-bit version.

2. When you run eclipse, you receive the following error message: Failed to load the JNI shared library D:\JAVA\JDK. \jvm.dll, the problem is that JDK digits (32-bit or 64-bit) are inconsistent with eclipse digits, and installing the same JDK version as the eclipse bits solves the problem.

3. If more than one JDK is installed and the configured JDK environment variable does not match eclipse, to use that version of Eclipse, you can also modify the Eclipse.ini file in the Eclipse installation directory to resolve the problem. For example, the Eclipse version is 32-bit, but the JDK is installed with 64 bits, or if the JDK is installed but the environment variable is not configured, you can specify the JDK path to run in the Eclipse.ini file. Just add the following code under the OpenFile field in the file.

-VM
D:\Java\jdk1.7.0\bin


Related Article

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.