Providing licensing information
It is possible to provide the tool with the licensing information using the Java (JVM) system properties.
You can specify either seat or floating license.
- Seat license (license file) properties:
Property | Value | Description |
---|---|---|
LICENSE_FILE_FORCE_USAGE | true | when specified, the tool tries using the license file specified in LICENSE_FILE property. Allows changing the license. |
LICENSE_FILE | path to the license file or directory with the license files | when the tool has no license specified yet, or Surround the path with double quotes if it contains spaces. |
- Floating license (FlexNet license server) properties:
Property | Value | Description |
---|---|---|
FL_FORCE_USAGE | true | when specified, the tool uses a floating license. |
FL_SERVER_ADDRESS | FlexNet license server name or IP address | |
FL_SERVER_PORT | FlexNet license server port number | |
FL_EDITION | tool edition | specify if the tool supports editions; otherwise, omit. |
-D
must be prepended to the property name if the Java system property is specified through java command-line arguments/parameters.
E.g., in the tool launcher properties file (bin/<launcher name>.properties
), add floating license properties:
JAVA_ARGS=<...> -DFL_FORCE_USAGE\=true -DFL_SERVER_ADDRESS\=myServer -DFL_SERVER_PORT\=1101 -DFL_EDITION\=Enterprise
or specify license file:
JAVA_ARGS=<...> -D
LICENSE_FILE
\="c:/my licenses/licenseFile.txt"
Getting licensing information
Use the com.nomagic.magicdraw.license.utils.LicenseUtils to check some licensing information (edition, is it a trial or evaluation version).