Load Class Using Java
Class.forName
Method
Instead of using the Java®
Class.forName
method, call the MATLAB®
javaObjectEDT
function. For example, replace this statement:
java.lang.Class.forName('xyz.myapp.MyClass')
with:
javaObjectEDT('xyz.myapp.MyClass')