User`s manual
Using Java from MATLAB: An Overview
5-3
Using Java from MATLAB: An Overview
Java Interface Is Integral to MATLAB
Every installation of MATLAB includes a Java Virtual Machine (JVM), so that
you can use the Java interpreter via MATLAB commands, and you can create
and run programs that create and access Java objects. For information on
MATLAB installation, see the MATLAB installation documentation for your
platform.
Benefits of the MATLAB Java Interface
The MATLAB Java interface enables you to:
•Access Java API (application programming interface) class packages that
support essential activities such as I/O and networking. For example, the
URL
class provides convenient access to resources on the internet
•Access third-party Java classes
•Easily construct Java objects in MATLAB
•Call Java object methods, using either Java or MATLAB syntax
•Pass data between MATLAB variables and Java objects
Who Should Use the MATLAB Java Interface
The MATLAB Java interface is intended for all MATLAB users who want to
take advantage of the special capabilities of the Java programming language.
For example:
•You need to access, from MATLAB, the capabilities of available Java classes.
•You are familiar with object-oriented programming in Java or in another
language, such as C++.
•You are familiar with MATLAB object-oriented classes, or with MATLAB
MEX-files.
To Learn More About Java Programming
For a complete description of the Java language and for guidance in
object-oriented software design and programming, you’ll need to consult
outside resources. For example, these recently published books may be helpful: