Could I pack native DLLs into WAR?

后端 未结 6 591
迷失自我
迷失自我 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条回答
  •  Happy的楠姐
    2021-01-13 19:33

    No you can't. DLLs have to be loaded from the file system. You would need (1) a cast-iron guarantee that the application server will unpack WARs to the file system, and (2) a knowledge of exactly where the DLL would be unpacked to on the file system so you can call System.load() with the correct filename.

提交回复
热议问题