The MATLAB Runtime Startup Options

Set MATLAB Runtime Options

Set MATLAB® Runtime options, such as -nojvm, -nodisplay, or -logfile by performing either of the following tasks.

  • Using the Additional Runtime Settings area of the compiler apps.

  • Using the mcc command, specify the -R switch.

Use a Compiler App

In the Additional Runtime Settings area of the compiler apps, you can set the following options.

    Note:   Not all options are available for all compilation targets.

Set MATLAB Runtime Startup Options Using the Compiler Apps

MATLAB Runtime Startup OptionThis option...Set the options by...
-nojvmDisables the Java® Virtual Machine (JVM™), which is enabled by default. This can help improve the MATLAB Runtime performance.Select the No JVM checkbox.
-nodisplayOn Linux®, launches the MATLAB Runtime without display functionality.In the Settings box, enter -R -nodisplay.
-logfileWrites information about the MATLAB Runtime startup to a logfile.Select the Create log file checkbox. Enter the path to the logfile, including the logfile name, in the Log File box.

Set MATLAB Runtime Startup Options Using the mcc Command Line

When you use the command line, specify the -R switch to invoke the MATLAB Runtime startup options you want to use.

Following are examples of using mcc -R to invoke -nojvm, -nodisplay, and -logfile when building a C standalone (designated by the -m switch).

 Set -nojvm

 Set -nodisplay (Linux Only)

 Set -logfile

 Set -nojvm, -nodisplay, and -logfile With One Command

Was this topic helpful?