
553Using MATLAB
®
from within Java
9.2.2 Other Interesting JMI Classes
In addition to the important com.mathworks.jmi.Matlab class, a few other JMI classes
merit at least a brief mention:
com.mathworks.jmi.MatlabPath handles changes to the MATLAB path or current
folder (pwd). These can be modied from Java, or monitored asynchronously for changes.
†
com.mathworks.jmi.MLFileUtils can be used to query le types (see mdbleonpath).
com.mathworks.jmi.AWTUtilities is a utility class that enables synchronous (invoke-
AndWait) and asynchronous (invokeLater) invocation of functions on the main MATLAB
execution thread, including the ability to ...