Java.lang.UnsatisfiedLinkError:no in Java.library.path Solutions

Source: Internet
Author: User
After the Java project was packaged with EXE4J, the results of the other computer operations appeared

Java.lang.UnsatisfiedLinkError:no in Java.library.path's error, just beginning to think that the jar package is not in the Classpath path, later found that Java.library.path and classpath are two different variables, the latter is the class path we know, and the jar package, which is related to the DLL, which specifies DLL file search path.

In my project, with third-party jar packages and DLL files, DLL files are placed in the engineering root directory and running in Eclipse is no problem. But after exe4j packaging, put the DLL file in the same directory as the package generated EXE file, exe run prompt no XXX. JAR in Java.library.path.

Workaround:

In the exe4j packaged Java invocation step, there is an advanced options option under which native libraries is added, adding the directory where the DLL resides.

Java.lang.UnsatisfiedLinkError:no in Java.library.path Solutions

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.