필터 지우기
필터 지우기

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

조회 수: 7 (최근 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에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by