Java.lang.UnsatisfiedLinkError:no DLL in Java.library.path the ultimate solution

Source: Internet
Author: User

when Java calls a DLL, it appears No DLL in Java.library.path exception, not common in Java project, as long as the DLL is copied to the System32 directory; However, it is often encountered in Web project, because Web project references the Java.library.path has two places (the bin directory of the JRE and the bin directory of Tomcat)

So here's how to fix it:

1. Execute System.out.println (system.getproperty ("Java.library.path") in the project and get the specific path to Java.library.path

2. If you are Java project, copy the appropriate DLL to the system32 directory

3. If it is Web project, copy the corresponding DLL to the bin directory of the JRE and the Tomcat bin directory.

such as: D:\Program files\java\jre6\bin; and E:\Program Files\apache software Foundation\tomcat 6.0\bin

Ok. Solve!

Java.lang.UnsatisfiedLinkError:no DLL in Java.library.path the ultimate solution

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.