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.
- JAR File Classes
- Packages
- Individual (unpackaged) classes
MATLAB segments the Java class path into a static path and a dynamic path. MATLAB searches the static path before the dynamic path.
- Use the static path as the default path to load a Java class.
- Use the dynamic path when developing your own Java classes. You can modify and load the dynamic path any time during a MATLAB session.