User 92a07cc890
22-08-2012 09:32:40
Hello,
I have jchem version 5.10.2 and generating inchi throws the following error :
import chemaxon.formats.MolImporter;
import chemaxon.struc.Molecule;
public class Inchiprinter {
public static void main (String[] args) throws Exception {
MolImporter Importer = new MolImporter();
Molecule mol = new Molecule();
if (args[0].length()>0) {
mol = Importer.importMol(args[0]);
}
System.out.println(mol.toFormat("inchi"));
}
}
Exception in thread "main" java.lang.NoSuchMethodError: net.sf.jniinchi.JniInchiWrapper.loadLibrary(Ljava/lang/String;)V
at chemaxon.marvin.io.formats.inchi.Inchi.loadNative(Inchi.java:168)
at chemaxon.marvin.io.formats.inchi.Inchi.install(Inchi.java:75)
at chemaxon.marvin.io.formats.inchi.Inchi.<clinit>(Inchi.java:241)
at chemaxon.marvin.io.formats.inchi.InchiExport.<clinit>(InchiExport.java:45)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at chemaxon.formats.MFileFormat.createExportModule(MFileFormat.java:1025)
at chemaxon.formats.MFileFormatUtil.createExportModule(MFileFormatUtil.java:978)
at chemaxon.formats.MFileFormatUtil.createExportModule(MFileFormatUtil.java:952)
at chemaxon.formats.MolExporter.exportToObject(MolExporter.java:1235)
at chemaxon.formats.MolExporter.exportToFormat(MolExporter.java:1145)
at chemaxon.formats.StructureExporterUtil.exportToFormat(StructureExporterUtil.java:62)
at chemaxon.struc.Molecule.exportToFormat(Molecule.java:1063)
at chemaxon.struc.Molecule.toFormat(Molecule.java:1035)
at Inchiprinter.main(Inchiprinter.java:12)
Please help,
István