How do I resolve the error “java.lang.UnsatisfiedLinkError: nativemvm.dll already loaded in another classloader” when running a Java Engine program?
I have a Java source code that calls MATLAB via MATLAB Engine API. I compiled a .WAR file from the Java source code on Windows 7. Then I deployed the .WAR file to Windows Server 2016 using JBoss EAP, and got the following error:
ERROR: java.lang.UnsatisfiedLinkError: Native Library C:Program FilesMATLABR2019abinwin64nativemvm.dll already loaded in another classloader
I have MATLAB R2019a installed on both Windows 7 and Windows Sever 2016. Before deploying the .WAR file, I added "C:Program FilesMATLABR2019abinwin64" to the PATH variable on Windows Server 2016 and added “C:Program FilesMATLABR2019aexternenginesjavajarengine.jar” to the “classpath” in JBoss.
How do I resolve this "nativemvm.dll" error?I have a Java source code that calls MATLAB via MATLAB Engine API. I compiled a .WAR file from the Java source code on Windows 7. Then I deployed the .WAR file to Windows Server 2016 using JBoss EAP, and got the following error:
ERROR: java.lang.UnsatisfiedLinkError: Native Library C:Program FilesMATLABR2019abinwin64nativemvm.dll already loaded in another classloader
I have MATLAB R2019a installed on both Windows 7 and Windows Sever 2016. Before deploying the .WAR file, I added "C:Program FilesMATLABR2019abinwin64" to the PATH variable on Windows Server 2016 and added “C:Program FilesMATLABR2019aexternenginesjavajarengine.jar” to the “classpath” in JBoss.
How do I resolve this "nativemvm.dll" error? I have a Java source code that calls MATLAB via MATLAB Engine API. I compiled a .WAR file from the Java source code on Windows 7. Then I deployed the .WAR file to Windows Server 2016 using JBoss EAP, and got the following error:
ERROR: java.lang.UnsatisfiedLinkError: Native Library C:Program FilesMATLABR2019abinwin64nativemvm.dll already loaded in another classloader
I have MATLAB R2019a installed on both Windows 7 and Windows Sever 2016. Before deploying the .WAR file, I added "C:Program FilesMATLABR2019abinwin64" to the PATH variable on Windows Server 2016 and added “C:Program FilesMATLABR2019aexternenginesjavajarengine.jar” to the “classpath” in JBoss.
How do I resolve this "nativemvm.dll" error? MATLAB Answers — New Questions