The error is shown in the figure below:
Sometimes, when a new computer encounters an error "Failed to load the JNI shared library jvm.dll" when opening Eclipse on the new computer, I will share the solution with you here.
Normally, if you are a 64-bit system and have a 32-bit JDK installed, it will lead to the above situation.
Solution
1. Uninstall the 32-bit JDK that was originally installed, and then install the 64-bit JDK to the computer.
2. Remodify the two environment variables path and classpath. Because in the 64 system, the 32-bit software is installed back into the program files (*86) folder, and the 64-bit software will be installed into the program files folder. When you installed 32JDK before, the environment variable path you set will of course include "program files (*86)". At this time, the JDK has been transferred to the "program files", just modify it.
Note that the JDK version numbers you installed twice may not be the same, because the JDK folder will be created according to your version number during installation. If the version numbers are different between the two times, you must also modify them in the environment variables.
Now, Eclipse should be used normally, go and practice Java programs!
Additional to other netizens:
Reason 1: jvm.dll does not exist in the given directory.
Countermeasures: (1) Reinstall jre or jdk and configure environment variables. (2) copy a jvm.dll in this directory.
Reason 2: The version of eclipse is inconsistent with the version of jre or jdk. Countermeasures: either both have 64-bit installations, or both have 32-bit installations, and one cannot be 32-bit and the other is 64-bit.
Reason 2 is more likely to occur, Reason 1 is unlikely