Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Specifying Java Startup Options

You can specify custom Java® startup options by creating a java.opts file, a text file containing one option per line. For example, use the -Dproperty=value command to assign a value to a system property.

Put the java.opts file in one of the following folders:

  • MATLAB® startup folder, if starting MATLAB from a command prompt.

  • If there is no java.opts file in the startup folder, MATLAB checks the matlabroot/bin/arch folder. matlabroot is the output of the matlabroot function and arch is the output of the computer('arch') function.

    A java.opts file in this location applies to all users, but individual users might not have permissions to modify files there.

Do not use a java.opts file in the following situations:

See Also

|

Related Examples

More About

Was this topic helpful?