I have created a Java JAR package by using the Java Package target of MATLAB Builder JA using the DEPLOYTOOL or MCC functions. I would like to load this package into the MATLAB workspace and call its functions.
I can add this JAR file to the dynamic path with JAVAADDPATH, but when I try to instantiate a class object from the package, I get the following exception:
Java exception occurred: ... Matlab M-code Stack Trace ... com.mathworks.toolbox.javabuilder.MWException: Component created using MATLAB Builder JA cannot be loaded in MATLAB
Best Answer