问题
I have generated a java code from matlab and while executing the java code in Eclipse it is using mclmcrrt711.dll file in matlab compiler runtime, when i try to execute the java code in another machine which is not having matlab or matlab compiler it is giving me the error:"java.lang.UnsatisfiedLinkError: Failed to find the library mclmcrrt711.dll, required by MATLAB Builder JA, on java.library.path" i tried adding the mclmcrrt711.dll file to the library and by setting system path to that dll file location(as copied just the .dll file to other system which is not having matlab compiler). How can i overcome this error?? Please help me out.
Thank you in advance Srikanth
回答1:
In order to use Java components that use MATLAB on a machine that does not have MATLAB installed on it, you will need to install the MATLAB Compiler Runtime (MCR). I am assuming you are using MATLAB Builder JA. You should have the MCR installer on the MATLAB install CD. You can contact The MathWorks and they will be able to help you get the MCR installer in the event you downloaded your copy of MATLAB.
来源:https://stackoverflow.com/questions/3614820/can-we-deploy-the-matlab-generated-java-code-on-any-other-machine-which-is-not-h