Java调用MATLAB作图是的ERROR--MWEException

Exception: com.mathworks.toolbox.javabuilder.MWException: This component was created using a version of MATLAB Builder JA that is not compatible with the version of MCR that it is running against

自己在网上搜索了两天才解决了这个小问题。问题的实质是你们有安装MATLAB Compiler Runtime (MCR)。解决办法如下:

     我安装的是MATLAB 2012a版本的软件。在路径D:\Program Files\MATLAB\R2012a\toolbox\compiler\deploy\win32下找到mcrinstall.exe(如果你安装了其他版本,此路径下找不到这个.exe文件。在搜索框里搜索mcrinstall.exe)。点击安装,安装完成之后重启MATLAB,重新部署你的.m文件。问题即可解决。

posted @ 2012-08-10 16:08  Entropy_lxl  阅读(1677)  评论(0编辑  收藏  举报