Installation Guide for Windows Previous page   Next Page

License File Search Path

By default, MATLAB expects to find the License File, license.dat, in the $MATLAB\bin\win32 directory. This is the location where the installer puts the License File after processing it during installation. MATLAB reads this License File to determine the hostname and port address of the license server.

You can tell MATLAB to use a different License File, using either of the following methods:

Using Environment Variables to Specify the License File Location

You can specify the License File you want to use by assigning a value to either of two environment variables: LM_LICENSE_FILE or MLM_LICENSE_FILE.

The LM_LICENSE_FILE environment variable, if set, specifies the location of the License File for all applications using FLEXlm on this server.

The MLM_LICENSE_FILE environment variable also specifies the location of the License File, but only for products of The MathWorks.

On Windows systems, use the System Properties dialog box to create these environment variables. For example, on Windows XP systems, right-click the My Computer icon on your desktop and select Properties. In the System Properties dialog box, select the Advanced tab. On this panel, click the Environment Variables button. On the Environment Variables dialog box, click the New button to create a variable.

Using the -c Command Line Option

You can also use the -c command line option to specify the License File that you want to use when you start the license manager daemon. When you use this option, you override any values that the environment variables might contain. When you use the -c option with the matlab command, you explicitly prohibit the searching of these environment variables.


Previous page  License File Processing on Client Systems Managing the License Manager Next page

© 1994-2005 The MathWorks, Inc. Terms of Use Patents Trademarks