Solution: Eclipse cannot open "failed to load the JNI shared library"

Source: Internet
Author: User

Generally, a new laptop is pre-installed with a 64-bit Windows system. When downloading software online, 32-bit will first appear on the page (this is the case now, but I think the 64-bit will become more and more popular in the future ).

If you have a 64-bit system installed with a 32-bit JDK, the above situation will occur.

The solution is as follows:

  1. Uninstall the originally installed 32-bit JDK and install the 64-bit JDK on your computer.

  2. Modify the path and classpath environment variables again. In 64-bit systems, the 32-bit software is installed in the program files (* 86) folder, and the 64-bit software is installed in the Program Files Folder. When you install 32jdk, the environment variable path you set will certainly include "program files (* 86)", and the JDK has been transferred to "Program Files" and can be modified.

  3. Note that the JDK version number you installed twice is not necessarily the same, because the JDK folder will be created based on your version number during installation. if the version number is different twice, you must modify it in the environment variable.

Now, eclipse can be used normally. Go and practice the Java program!

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.