trying to execute "javaaddpath" from c++ compiled .m file.

1 次查看(过去 30 天)
I am calling a compiled .m file from my c++ program that executes "javaaddpath". Upon execution of this line of code, the error statement: [??? Undefined variable "com" or class "com.mathworks.jmi.ClassLoaderManager.getClassLoaderManager"]. I initialize the shared object with my .m file using mclmcrInitialize() followed by if(!mclInitializeApplication(mcc_args, 1)) where mcc_args is "-nodisplay". When I startup matlab manually separate from my c++ application, I see that "com.mathworks.jmi.ClassLoaderManager" exists upon start-up. What do I need to do to have it exist when my compiled .m file executes in my c++ program?

回答(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