.dll already loaded in another classloader?

前端 未结 4 801
庸人自扰
庸人自扰 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 08:09

    Copy the DLLs to temporary files in a temporary directory before loading them. Delete the files when you are done. This way you can ensure that the same DLL is not loaded twice.

提交回复
热议问题