[英]java.lang.UnsatisfiedLinkError: Native Library: {…}.dll already loaded in another class loader
I have been using MATLAB Builder JA. 我一直在使用MATLAB Builder JA。 I have developed two projects using JA.
我已经使用JA开发了两个项目。 If only one project is deployed in tomcat, it runs fine, but deploying the other project gives the following error:
如果在tomcat中仅部署了一个项目,则该项目运行良好,但是部署另一个项目会出现以下错误:
java.lang.UnsatisfiedLinkError: Native Library: C:\Program Files\MATLAB\MATLAB Compiler Runtime\v714\bin\win32\BuilderJABootstrap.dll already loaded in another class loader
The following link : http://groups.google.com/group/ibm.software.websphere.application-server/browse_thread/thread/02f08709a504d5fb?pli=1 suggests to create a shared library and add it to the server's classloader list, but , I have no idea how to do it. 以下链接: http : //groups.google.com/group/ibm.software.websphere.application-server/browse_thread/thread/02f08709a504d5fb?pli=1建议创建一个共享库并将其添加到服务器的类加载器列表中,但是,我不知道该怎么做。 Please help.
请帮忙。
Put the class and .ddl in question in Tomcat's $CATALINA_HOME/shared/lib directory instead of in the web applications. 将类和.ddl放在Tomcat的$ CATALINA_HOME / shared / lib目录中,而不是在Web应用程序中。
http://wiki.apache.org/tomcat/HowTo#I.27m_encountering_classloader_problems_when_using_JNI_under_Tomcat http://wiki.apache.org/tomcat/HowTo#I.27m_encountering_classloader_problems_when_using_JNI_under_Tomcat
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.