Exception in thread "main" java.lang.NoSuchMethodE

User 75c3bec5c6

10-06-2009 09:41:19

When applying the following command (called from matlab):


java -cp "c:\Program Files\ChemAxon\JChem\lib\jchem.jar" chemaxon.reaction.Standardizer "molfile_in.mol" -c "c:\Program Files\ChemAxon\JChem\data\configfiles\default.xml" -f mol -o "molfile_out.mol"


I get the error:


Exception in thread "main" java.lang.NoSuchMethodError: main


This started ever since I upgraded (fresh PC install) to jchem 5.2.02.


When I uninstalled this version and installed v5.1.04 it works like a charm again.


Is this a bug in v5.2 or has the commandline format changed?

ChemAxon e08c317633

10-06-2009 10:05:19

Hi,


There is no main method in chemaxon.reaction.Standardizer class in JChem 5.2. The main method of the Standardizer application from 5.2 version is called from the chemaxon.reaction.ConcurrentStandardizerProcessor class, which performs the standardizations in concurrent mode (will use all CPU cores).


The command line format is the same, so replacing chemaxon.reaction.Standardizer with chemaxon.reaction.ConcurrentStandardizerProcessor in your command should solve the error.


Zsolt