This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this 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 an operating system prompt. For more information, see MATLAB Startup Folder.

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

    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?