NoClassDefFoundError in chemaxon.reaction.Standardizer

User fa1369adab

17-05-2006 18:32:52

This error suddenly appeared when we upgraded from JChem 3.1.3 to JChem 3.1.6.


When I call chemaxon.jchem.db.UpdateHandler(), I get an exception, described in this stack trace:
Quote:



java.lang.NoClassDefFoundError: org/dom4j/DocumentException


at chemaxon.reaction.Standardizer.<init>(Standardizer.java:388)


at chemaxon.reaction.Standardizer.<init>(Standardizer.java:281)


at chemaxon.jchem.db.TableInfo.getStandardizers(TableInfo.java:1053)


at chemaxon.jchem.db.TableInfo.getStandardizer(TableInfo.java:1031)


at chemaxon.jchem.db.UpdateHandler.getStandardizer(UpdateHandler.java:742)


at chemaxon.jchem.db.UpdateHandler.initFields(UpdateHandler.java:392)


at chemaxon.jchem.db.UpdateHandler.<init>(UpdateHandler.java:233)


at com.prenhall.epoch.db.chem.MolTable.importMol(MolTable.java:173)


Is this my bug, or yours?

ChemAxon 9c0afc9aaf

17-05-2006 19:22:06

Hi,








In the JChem package, you can find a "lib" directory.


All of the jar files in this package should be accessible to your application.


(should be present in the application's classpath)





This specific error message indicates that the file "dom4j.jar" is not included in your application's classpath.





Best regards,





Szilard

User fa1369adab

17-05-2006 23:45:52

Szilard,





Thanks! That was just what I needed.





Refoyl