You can compile Java® packages from both the MATLAB® command line and the system terminal command line:
deploytool command has two flags to
invoke one of the compiler apps without opening a window.
Invoke the correct compiler app to build the project and not generate
Invoke the correct compiler app to build the project and generate
deploytool -package magicsquare generates
the binary files defined by the
and packages them into an installer that you can distribute to others.
invokes the compiler and provides fine-level control over the compilation
of the Java package. It, however, cannot package the results
in an installer.
To invoke the compiler to generate a Java package use the
mcc. This flag
creates a Java package named
The package contains a class
methods for each of the provided MATLAB functions.
For compiling Java packages, you can also use the following options.
Compiler Java Options
|Add any files on the path to the generated binary.|
|Specify the folder into which the results of compilation are written.|
|Specify that the generated classes instantiate a singleton MATLAB Runtime.|
|Specify that an additional class is generated that includes methods for the listed MATLAB files.|