Getting Started with the %COMPONENT_NAME% Java Package
The Library Compiler in MATLAB® Compiler SDK™ creates Java® packages that can be integrated with applications written in Java. It also generates sample Java driver code that can be used to integrate and test the generated components. You can use this guide to set up your environment and run your sample driver application.
Note: Sample Java driver code is only generated if sample MATLAB code is included during the packaging phase. Samples can be found in the folder named "samples".
Location of Installed Java Package Files
%SAMPLE_LINK%
Prerequisites
Complete this step only if you have not installed the MATLAB Runtime while installing the package.
Compiling a Java Driver Application
At the system terminal, type:
javac -cp %COMPONENT_NAME%.jar%PATHSEP%%MATLAB_RUNTIME_INSTALL_LOCATION%/toolbox/javabuilder/jar/javabuilder.jar %SAMPLE1%.java
Replace %MATLAB_RUNTIME_INSTALL_LOCATION% with the installation folder for MATLAB Runtime.
Note: You will need write permissions to the folder where you are compiling your driver application. If you do not have write permissions, copy the sample and generated component to a folder with write permissions, and then compile your driver application.
Executing a Java Driver Application
At the system terminal, type:
java -cp .%PATHSEP%%COMPONENT_NAME%.jar%PATHSEP%%MATLAB_RUNTIME_INSTALL_LOCATION%/toolbox/javabuilder/jar/javabuilder.jar %SAMPLE1%
Replace %MATLAB_RUNTIME_INSTALL_LOCATION% with the installation folder for MATLAB Runtime.
Additional Resources