Home > Back-end >  Abnormal UnsatisfiedLinkError Java calls dynamic libraries.
Abnormal UnsatisfiedLinkError Java calls dynamic libraries.

Time:09-24

Using a 64 - bit Ubuntu
Call is hikvision API.
An error code below
 
HCNetSDK INSTANCE=(HCNetSDK) loadLibrary (" HCNetSDK, "
HCNetSDK. Class);

The native Windows 10 64 to perform perfectly normal packaged jar program into the Ubuntu Java - jar xx. Jar
An exception is


 
The Exception in the thread "main" Java. Lang. UnsatisfiedLinkError: jnidispatch (/com/sun/jna/Linux - aarch64/libjnidispatch. So) not found in the resource path
At com. Sun. Jna. Native. LoadNativeLibraryFromJar (568). Native Java:
At com. Sun. Jna. Native. LoadNativeLibrary (550). Native Java:
At com. Sun. Jna. Native. & lt; Clinit> (Native Java: 87)
The at HCNetSDK. & lt; Clinit> (HCNetSDK. Java: 39)
At the Main. The Main (28). The Main Java:

Jars directory structure is as follows

Solve ChongXie!

CodePudding user response:

The specified file is not ah, you look at your file paths are not the/com/sun/jna/Linux - aarch64/libjnidispatch. So

CodePudding user response:

reference 1st floor bamboo _bamboo response:
the specified file is not ah, you look at your file paths are not the/com/sun/jna/Linux - aarch64/libjnidispatch. So
where the path is the root of com folder?

CodePudding user response:

Problem solved, I also encountered this problem

CodePudding user response:

This problem solved, I put you. So the file path specified in the SDK interface
  • Related