Documentation for installing license files issued for versions prior to 5.0 can be found here.
Installing Licenses on Servers
The possible ways of installing licenses on a server (web applications e.g. JSP pages, Pipeline Pilot):
- Using system variables (recommended):
The location of the license file can be set with:CHEMAXON_LICENSE_URLenvironment variable (help on setting environment variables)chemaxon.license.urlJava system property
;".
In case license files are set this way, the license files from the user's home directory will not be read unless the special word "default" is given.
Example:-Dchemaxon.license.url="C:\ChemAxon\license2009.cxl;C:\ChemAxon\license2010.cxl;default" - Manual install:
The license file must be stored on the server, in the.chemaxon(Unix) orchemaxon(Windows) sub-directory under the home directory of the user who started JChem Server. The following locations are accepted:(.)chemaxon/license.cxl(the license file name is fix)(.)chemaxon/licenses/*.cxl(from version 5.3.2 only - the license file can have arbitrary name, the extension is fix)
- Command line install:
Launch thelicenseshell script (Unix) orlicense.batbatch file (Windows).
Typelicense -hfor the list of available options. - Using API:
chemaxon.license.LicenseManager.setLicenseFile(String path)
If the licenses are installed later, when a web application is already running, it is not necessary to restart the web server (e.g. Tomcat), the License Manager will automatically and repeatedly check if a license file was installed in the meanwhile.
Licensing Applets
Example:
<script LANGUAGE="JavaScript1.1" SRC="../../../marvin.js"></script>
<script LANGUAGE="JavaScript1.1">
<!--
msketch_begin("../../..", 540, 480); // arguments: codebase, width, height
msketch_param("licenseFile", "https://www.yourserver.com/chemaxon/license.cxl");
msketch_end();
//-->
</script>
Restrictions:
- The licenses should have the "Server mode allowed" field
- The value should start with http:// or https://
Licensing via Java Web Start
Example:
<resources> <property name="chemaxon.license.url" value="https://www.yourserver.com/chemaxon/license.cxl"/> </resources>
Restrictions:
- The licenses should have the "Server mode allowed" field
- The value should start with http:// or https://
Do you have a question? Would you like to learn more? Please browse among the related topics on our support forum or search the website. If you want to suggest modifications or improvements to our documentation email our support directly!
