| |||
| Home > Frequently Asked Questions about Licensing > General licensing questions > How does FLEXnet find a license file? | |||
The locations to be searched by ARM® license-managed
software are stored in the ARMLMD_LICENSE_FILE environment
variable. You can set ARMLMD_LICENSE_FILE so
that it contains one or more file names, directory names, or port@server
information. If you specify a directory name, you must not include
the final slash “/”character. The locations
are searched in order until a valid license is found. If a directory
name is found then each file within the directory that has a .lic extension
is searched. For ARM licensed tools, the contents of ARMLMD_LICENSE_FILE are
searched before the contents of the generic FLEXnet environment
variable, LM_LICENSE_FILE.
A summary of the algorithm used in ARM licensed products when searching for a license file is:
if (ARMLMD_LICENSE_FILE env-var set)
{
Search ARMLMD_LICENSE_FILE for feature.
if (feature found)
{
Stop searching
}
}
if (LM_LICENSE_FILE env-var set)
{
Search LM_LICENSE_FILE for feature.
if (feature found)
{
Stop searching
}
}
else
{
Search c:\FLEXlm\license.dat (Windows)
Search /usr/local/FLEXlm/licenses/license.dat (Unix/Linux)
if (feature found)
{
Stop searching
}
}
Print error saying that license was not found.