current position:Home>Must JNA load DLL be an absolute path? The relative path will report an error every time it is loaded lang.UnsatisfiedLinkError

Must JNA load DLL be an absolute path? The relative path will report an error every time it is loaded lang.UnsatisfiedLinkError

2022-02-02 20:46:16 CSDN Q & A

Native.loadLibrary(IGZH_dll.class.getResource("").getPath()+"Xxx.dll",XXX_dll.class)




Refer to the answer 1:

As long as it can be loaded into ( The most common loss is jdk Installation directory , This is not recommended ), If you use spring Words , You can operate through , Configure the path from the configuration file , So even if you write the absolute path, it doesn't matter , Configurable anyway




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022046141241.html

Random recommended