MATLAB运行编译生成的EXE时出现错误:Warning:failed to add default profiler filters. >In matlabrc at 163 Undefined function 'javaaddpath' for input arguments of type 'cell'.
8 views (last 30 days)
Show older comments
我在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 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!