Java. lang. UnsatisfiedLinkError: % 1 is not a valid Win32 application ., Not a 32-bit valid application
When JNA calls the dll library, the following error occurs:
//// // Introduce the DLL library through JNA // /// *** ID_FprCap.dll fingerprint collection, fingerprint device initialization, setting, etc. */public interface ID_FprCap extends StdCallLibrary {ID_Fpr fpr = ID_Fpr.INSTANCE; ID_FprCap fprCap = (ID_FprCap) Native. loadLibrary ("ID_FprCap", ID_FprCap.class);/*** initialize fingerprint collector * @ return success return 1, shard resources, check permissions, in all interface functions, this function is usually called first. You only need to call it once and allow repeated calls. * The result is the same as that of one call. Error call LIVESCAN_GetErrInfo to obtain error information */public int LIVESCAN_Init ();/*** close the collector and release resources. after this function is called, only LIVESCAN_GetVersion, LIVESCAN_GetDesc, and * LIVESCAN_GetErrorInfo functions can be called before LIVESCAN_Init is called. After calling this function, you need to re-call LIVESCAN_Init to initialize the collector. * @ return returns 1. An error occurred while calling LIVESCAN_GetErrInfo to obtain the error message */public int LIVESCAN_Close ();
My environment is 64-bit win7.
Java. lang. UnsatisfiedLinkError: % 1 is not a valid Win32 application.
Solution: If the 64-bit JDK in the system is deleted, the error is no longer reported.