MATLAB运行编译​生成的EXE时出现错​误:Warning:​failed to add default profiler filters. >In matlabrc at 163 Undefined function 'javaaddpath' for input arguments of type 'cell'.

8 次查看(过去 30 天)
我在win7 64位系统上用matlab2012b(64位)的mcc指令将一个简单的代码编译成exe格式的文件,代码如下:
function C = MyAdd(A,B)
C = A+B;
end
在运行exe文件时提示如下错误:
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'.
Undefined function 'javaaddpath' for input arguments of type 'cell'.
而且出现这个错误的对话框一闪而过。
另外,我用matlab的mcc指令生成的dll和lib链接库等文件,在VS2012下调用时,生成代码时未出现错误,但是在执行程序是出现了和上面错误非常相似的错误,如下图所示:
因为出现的错误非常相似,所以我觉得这个应该还是matlab的问题,所以想请教一下这个问题怎么解决?

采纳的回答

Lucky
Lucky 2014-5-21
怎么没有人帮我解答一下吗?

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by