Cause 1: Jvm.dll does not exist in the given directory.
Workaround: (1) Reinstall the JRE or JDK and configure the environment variables. (2) Copy a jvm.dll placed in the directory.
Cause 2:eclipse version is inconsistent with JRE or JDK version
Workaround: Either both install 64-bit, either install 32-bit, not one is 32 bit one is 64 bit.
First determine how many bits of eclipse, or 64, in the Eclipse installation directory in the Eclipse.ini file, under "--launcher.library", if there is win32.x86, is 32-bit.
The probability of cause 2 is greater.
It is also possible to install the 32-bit eclipse, but the Java_home is configured with a 64-bit JDK:
In this case, switching between the 32 and 64 JDK (modify Java_home, then save), and then restart Eclipse can also be resolved.
The Failed to load the JNI shared library "C:\Program Files\java\jdk1.7.....\jvm.dll" appears when you start eclipse