jchem.jar version - how to determine ?

ChemAxon 9c0afc9aaf

08-07-2004 09:16:35

[Quoted from user e-mail]





Dear Support,





Is it possible to know the version of JChem.jar using a command line


like: java -jar jchem.jar?


How could I know the version of JChem used in JChemproperties and JChem


Structures tables?


Is there a command line that can indicate me about the version of JChem


used for the tables?





As I'm using different version of JChem.jar ( a production version, a


version for the upgrade and sometimes the test version), I wonder how I


can have information about the version of JChem used for the table and


version of jchem.jar.

ChemAxon 9c0afc9aaf

08-07-2004 09:49:23

Actually java -jar jchem.jar is a good idea, it will print the version of JChem and the corresponding table version in JChem 2.3 and later releases.





(The table version only changes, if table regeneration is necessary due to changes to internal data format in jchem)





The following methods are available for older versions as well:





1. Command-line:


Generally "jcman --help", but if you want to make sure, that you are


questioning the right jar, use the following:





java -cp jchem.jar chemaxon.jchem.JChemManager --help





The table version can be determined from the jchem version


The versions, where table version was changed:


JChem 2.0: 1


JChem 2.1: 2


JChem 2.2: 3





2. GUI:


The version is also displayed in the Help -> About menu of JChemManager (jcman)





3. JSP example: Click on the "About" button on the left.





4. API:


You can print the values of the following static variables:





chemaxon.jchem.VersionInfo.JCHEM_VERSION


and


chemaxon.jchem.VersionInfo.JCHEM_TABLE_VERSION