MCR (MATLAB Compiler Runtime) undefinedVarOrClass error on Windows 7

时光毁灭记忆、已成空白 提交于 2019-12-11 19:42:27

问题


I'm trying to execute an exe program that calls a dll compiled with MATLAB, I am using MATLAB MCR R2012b to execute it.

It works OK on Windows XP 32 bits, but when trying to run it on Windows 7 (64 bits) the following error raises:

Warning: Initializing Handle Graphics failed in matlabrc
This indicates a potentially serious problem in your MATLAB setup,
which should be resolved as soon as possible. Error detected was:
MATLAB:undefinedVarOrClass
Undefined variable "graphics" or class "graphics.internal.initializeMATLABRoot".
Warning: Failed to add default profiler filters.
>In matlabrc at 163
Undefined function 'javaaddpath' for input arguments of type 'cell'
Could not initialize function.

I have installed MCR R2012b for 32 bits, and JRE for 32 bits. I have tried changing the MATLAB_JAVA and the MATLAB_PREFDIR environment variables, with no results.

Also, I cannot try to execute the restoredfaultpath command because I just have MCR installed and not the complete MATLAB tool.

Can anyone provide any clue?

来源:https://stackoverflow.com/questions/17044246/mcr-matlab-compiler-runtime-undefinedvarorclass-error-on-windows-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!