| Contents | Index |
| On this page… |
|---|
Java Interface Is Integral to MATLAB Software Benefits of the MATLAB Java Interface Who Should Use the MATLAB Java Interface |
Every installation of MATLAB software includes Java Virtual Machine (JVM) software, 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 the MATLAB installation, see the MATLAB installation documentation for your platform.
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 workspace
Call Java object methods, using either Java or MATLAB syntax
Pass data between MATLAB variables and Java objects
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 the MATLAB Class System, or with MEX-files.
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.
To find out which version of JVM software is used by MATLAB on your platform, type the following at the MATLAB prompt:
version -java
![]() | Using Java Libraries from MATLAB | Bringing Java Classes and Methods into MATLAB Workspace | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |