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的问题,所以想请教一下这个问题怎么解决?
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!