Main Content

JavaPackage Integration

Integrate compiled MATLAB®functions into Java®applications

WithMATLAB Compiler SDK™, integrating compiled MATLAB functions into a Java application involves using a combination of APIs that initializeMATLAB Runtime, load the compiled MATLAB functions intoMATLAB Runtime, and manage the data that passes between the Java and MATLAB.

Java packages and applications provide portable and scalable solutions for applications in large-scale enterprise or web environments. You can deploy generated packages to enterprise or web environments whereMATLAB Runtimeis installed.

Java Remote Method Invocation (RMI) is a set of APIs that enable Java objects to invoke objects in a different Java virtual machine (JVM). Use RMI to develop client-server applications, distributed applications, and web applications. For such applications, only the portions of the application that directly invoke MATLAB functions requireMATLAB Runtime. The other portions of the application can work with native Java data types.

Functions

compiler.build.javaPackage CreateJavapackage for deployment outsideMATLAB
compiler.build.JavaPackageOptions Options for buildingJavapackages
mcrinstaller Display version and location information forMATLABRuntimeinstaller corresponding to current platform
mcrversion ReturnMATLABRuntimeversion number that matchesMATLABversion

Java API Documentation

Topics

Requirements and Highlights

Create and Integrate withJava

Sample Applications

Data Management

Deployment Considerations

Remote Method Invocation

TroubleshootingJavaPackages