Java Class Path - MATLAB & Simulink (original) (raw)

Main Content

To make Java® classes available to MATLAB®, place them on the Java class path. The class path is a series of file and folder specifications. When loading a Java class, MATLAB searches the files and folders in the order they occur on the class path. The search ends when MATLAB finds a file that contains the class definition.

Built-in Java class packages—classes in the Java standard libraries—are already on the class path. You do not need to modify the path to access these classes.

To access Java classes from MATLAB, add them to the class path. For information and examples, see Static Path of Java Class Path.

MATLAB segments the Java class path into a static path and a dynamic path. MATLAB searches the static path before the dynamic path.

See Also

javaclasspath

Topics