0

我正在尝试执行一个调用用 MATLAB 编译的 dll 的 exe 程序,我正在使用 MATLAB MCR R2012b 来执行它。

它在 Windows XP 32 位上运行正常,但是当尝试在 Windows 7(64 位)上运行它时,会出现以下错误:

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.

我已经为 32 位安装了 MCR R2012b,为 32 位安装了 JRE。我尝试更改 MATLAB_JAVA 和 MATLAB_PREFDIR 环境变量,但没有结果。

此外,我无法尝试执行 restorefaultpath 命令,因为我只是安装了 MCR 而不是完整的 MATLAB 工具。

任何人都可以提供任何线索吗?

4

0 回答 0