JNA when invoking DLL libraries, error-Preserving:
/////////////////introduction of DLL libraries via JNA//////////// /*** Id_fprcap.dll is responsible for fingerprint collection, fingerprint initialization, setup, etc.*/ Public InterfaceId_fprcapextendsstdcalllibrary {ID_FPR FPR=id_fpr.instance; Id_fprcap Fprcap= (Id_fprcap) native.loadlibrary ("Id_fprcap", Id_fprcap.class); /*** Initialization of fingerprint collector *@returnsuccessful return 1, shard resource, check permissions, in all interface functions, this function is usually called first. It only needs to be called once, allowing repeated calls * its result is the same as one call. Error calling Livescan_geterrinfo getting error message*/ Public intLivescan_init (); /*** Close the collector and release the resources. After calling this function, only livescan_getversion, Livescan_getdesc, * Livescan_get can be called before Livescan_init is called. The ErrorInfo function. After calling this function, you need to call Livescan_init again to initialize the collector. * @returnsuccessful return 1. Error call Livescan_geterrinfo get error message*/ Public intLivescan_close ();
My environment is 64-bit Win7.
Java.lang.UnsatisfiedLinkError:%1 is not a valid WIN32 application.
Workaround, delete the 64-bit JDK in the system and no longer report the error.
Java.lang.UnsatisfiedLinkError:%1 is not a valid WIN32 application.