You can access existing Java classes to use in the MATLAB workspace. For example, use built-in class packages, such as
java.util, which are included in the Java language. See your Java language documentation for descriptions of these packages. You also
can access classes defined in individual
.class files, packages,
or Java Archive (JAR) files, including classes you develop.
|Determine if input is Java object|
|Add entries to dynamic Java class path|
|Construct Java array object|
|Error message based on Java feature support|
|Return Java class path or specify dynamic path|
|Call Java method|
|Call Java method from Event Dispatch Thread (EDT)|
|Call Java constructor|
|Call Java constructor on Event Dispatch Thread (EDT)|
|Remove entries from dynamic Java class path|
|Determine if Java feature is available|
|Capture error information for Java exception|
How to call a method in the Java standard library class
Use the dynamic class path to develop your own Java classes.
import function to refer to a class by its class name
Add Java packages to MATLAB static path.
Getting information about methods.