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