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

1 vue (au cours des 30 derniers jours)
Carl Loeffel
Carl Loeffel le 16 Avr 2015
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?

Réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by