Where do I put the licenses.txt file for my web application?

User f698d0529d

10-05-2005 09:42:35

Hi


We have a license file, and I would like therefore to enable the plug in functionality (pKa, etc) of the Marvin applet being used in my asp.net web application. But where do I put the file? I've read





http://www.jchem.com/doc/user/Licenses.html





but it does not help me much. In an attempt to guess where to put it, I have put the file licenses.txt at the following locations, but Marvin still only allows one calculation, and then says





chemaxon.marvin.modules.LicenseException:


No valid license key has been found for logPPlugin.


The maximal number of calls (1) without a license key has been reached.





Please contact sales _at_ chemaxon.com to obtain a license key.





Can you help me?





Thanks





C:\


C:\chemaxon


C:\Documents and Settings\aspnet


C:\Documents and Settings\aspnet\chemaxon


C:\Inetpub


C:\Inetpub\chemaxon


C:\Inetpub\wwwroot


C:\Inetpub\wwwroot\chemaxon


C:\Inetpub\wwwroot\marvin_3.3.2


C:\Inetpub\wwwroot\marvin_3.3.2\chemaxon


C:\Inetpub\wwwroot\marvin_3.5.1


C:\Inetpub\wwwroot\marvin_3.5.1\chemaxon

ChemAxon fb166edcbd

10-05-2005 12:32:10

Marvin applets read the license file on the client side, while the server side application


(e.g. JSP code) reads the license file on the server side.





In your case (Marvin applets) each of your clients should have the license file in their system: license keys should be listed in the .chemaxon/licenses.txt (Unix) or chemaxon/licenses.txt (Windows) file under the user's home directory.

User f698d0529d

10-05-2005 12:53:26

OK I did not realise from your web page that you meant the client needed the license as well.





Anyhow, I have now put the licenses.txt file in the following locations on the client as well to no effect (I am actually testing this on a single machine, so the client and server are the same so far).





Where exactly do you mean by the "Windows home directory" - I would think you meant the following locations. However, to clarify, I have placed the licenses.txt file there and the applet is still complaining. What to do now?





C:\Documents and Settings\All Users\chemaxon


C:\Documents and Settings\mreddin\chemaxon

ChemAxon fb166edcbd

10-05-2005 13:41:32

The user home is read from the "user.home" Java System environment variable.





If the license file is not found then a warning with the file path is written to the


browser's Java console, e.g.:


License key file not found: /home/nora/.chemaxon/licenses.txt





I hope this message will help to find the correct file path.





In the latest Marvin release ( 3.5.5 ) the file path is written in the LicenseException text


as well:





chemaxon.marvin.modules.LicenseException:


License key file not found: /home/nora/.chemaxon/licenses.txt


No valid license key has been found for pKaPlugin.


The maximal number of calls (1) without a license key has been reached.


...

User f698d0529d

10-05-2005 14:33:27

Sorry - I did not look at the licenses.txt file too closely. I thought we had license keys for most of the plugins and it appears that we don't.


Thanks for your help.