Could I pack native DLLs into WAR?

后端 未结 6 586
迷失自我
迷失自我 2021-01-13 19:07

I\'m developing a web service which is using native code via JNI. Could I pack those dll\'s into my war?
I\'ve tired to manage them independently...

PS I\'m usin

6条回答
  •  無奈伤痛
    2021-01-13 19:17

    The DLL files are not loaded via class path. Classpath mechanism is only for loading java resources like class files and other properties files.

    One way is to specify the complete path of the DLL OR specify it using java.library.path system variable. Please check this link for further details.

提交回复
热议问题