Installing licenses

License file location

The license file should either be at the default location or in case of a custom location, the location should be configured to the license manager.

The default location is .chemaxon/license.cxl (Unix) or chemaxon\license.cxl (Windows) under the user's home directory.

From the 5.3.2 version license files can also be located at (.)chemaxon/licenses/*.cxl, the name of the license files can arbitrarily be changed.

On Unix systems - including most distributions of Linux - the home directory for each user takes the form /home/username (where username is the name of the user account). In newer versions of Microsoft Windows, based on the multi-user Windows NT, each user has a home directory which by default is located at C:\Users\username when using the English language version of the OS (with username again replaced by the particular user's login name).

In case of a web application (e.g. JSP pages) the license file should be placed on the server side, the user home is the home directory of the user that runs (owns) the web server.

Combining Marvin for JS and JChem WS

If you combine Marvin for JavaScript with JChem Webservices. you need to follow the following steps:

  1. Navigate to the home folder of the user who launches the servlet container. (If it is the current user, you can refer to it as %HOMEPATH% in Windows or as $HOME in UNIX.)

  2. In the home folder, create a chemaxon (under Windows) or .chemaxon (under UNIX) directory with write permission to this user.

  3. Create a licenses subfolder there and copy the licenseMarvinJS.cxl into this subfolder

  4. Setup the following license URL in Marvin for JavaScript by following the description in the Customize license file location section:

    {WS_APP_ROOT}/rest-v0/licenseMarvinJS.cxl

    Where {WS_APP_ROOT} means the root of the of the JChem Web Services package. For example, if the application is deployed as /webservices2 to the site, the url would be

    /webservices2/rest-v0/licenseMarvinJS.cxl
  5. Restart the servlet if necessary