.dll already loaded in another classloader?

前端 未结 4 803
庸人自扰
庸人自扰 2020-11-27 07:23

I have a webapp running under Tomcat 3.2.1 that needs to make JNI calls in order to access data and methods in legacy C++ code. A servlet is loaded on startup of the webapp

4条回答
  •  眼角桃花
    2020-11-27 07:59

    You can't load the same native library twice.

    Put the class in a jar file under /lib/, it will be shared over all wars.

提交回复
热议问题