Rules for Locating a License File
Summary
Flex-enabled applications use the following rules for choosing a license file to use
Question
How can a client application find license file/license server?
Answer
Flex-enabled applications use the following rules for choosing a license file to use:
- If a license search path is set using either the
VENDOR_LICENSE_FILEorLM_LICENSE_FILE(whereVENDORis the vendor daemon name) environment variable, it is used.VENDOR_LICENSE_FILEis used first.VENDOR_LICENSE_FILEis used only by products from theVENDORand by lmutil andLMTOOLS. - The environment variables
VENDOR_LICENSE_FILEand/orLM_LICENSE_FILEcan also be set in the Windows registry or, on UNIX, in$HOME/.flexlmrc. The Windows registry is in\HKEY_LOCAL_MACHINE\Software\FLEXlmLicense Manager.VENDOR_LICENSE_FILEis also automatically set upon successful checkout. - License server utilities accept the argument -c license_file_list , which specifies the license paths. If this is set, the environment variables are ignored.
- If none of the other locations is specified, then the following default location is used. Relying on this default location is not recommended.
On Unix, the default location is/usr/local/flexlm/licenses/license.dat.On Windows, the default location isC:\flexlm\license.dat.
Was this helpful?
© 2026 Flexera. All rights reserved.