我们可以将 matlab 生成的 java 代码部署到任何其他没有 Matlab 的机器上吗?
我已经从matlab生成了一个java代码,在Eclipse中执行java代码时,它在matlab编译器运行时使用mclmcrrt711.dll文件,当我尝试在另一台没有matlab或matlab编译器的机器上执行java代码时,它给出我遇到错误:“java.lang.UnsatisfiedLinkError:无法在 java.library.path 上找到 MATLAB Builder JA 所需的库 mclmcrrt711.dll” 我尝试将 mclmcrrt711.dll 文件添加到库并通过设置该 dll 文件位置的系统路径(仅将 .dll 文件复制到没有 matlab 编译器的其他系统)。我怎样才能克服这个错误?请帮帮我。
先感谢您 斯里坎特
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了在未安装 MATLAB 的计算机上使用使用 MATLAB 的 Java 组件,您需要安装 MATLAB 编译器运行时 (MCR)。我假设您正在使用 MATLAB Builder JA。 MATLAB 安装 CD 上应该有 MCR 安装程序。您可以联系 The MathWorks,他们将能够帮助您获得 MCR如果您下载了 MATLAB 副本,则需要安装程序。
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.