Eclipse cannot open the Failed to load the JNI shared library

Source: Internet
Author: User

Solution One

This is due to a problem with the JDK configuration error.


Generally speaking, the new purchase notebook will be preloaded with 64-bit Windows system, while downloading software on the Internet, 32 will appear first in the page (this is the case now, but I think the next 64 will become more and more popular).

If you are a 64-bit system, but the 32-bit JDK is installed, it will cause the above situation.

The solution is as follows:

      1. Uninstall the 32-bit JDK that was originally installed, and then install the 64-bit JDK into your computer.

      2. Re-modify both the path and CLASSPATH environment variables. Because of the 64 system, 32-bit software is installed back into the Program Files folder, 64-bit software will be installed into the Program Files folder, when you installed 32JDK, you set the environment variable path of course will include "Program Files" (* 86) ", and then the JDK has been transferred to" program Files ", modified to come.

      3. Note that you install the JDK version number two times, not necessarily the same, because the installation will be based on your version number to build the JDK folder, if the version number two times, in the environment variable also to be modified.

Solution II

Cause 1: Jvm.dll does not exist in the given directory.

Countermeasures: (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

Countermeasures: Either both are installed 64-bit, either installed 32-bit, not one is 32 bit one is 64 bit.

The probability of cause 2 is greater, cause 1 is unlikely to happen

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.