I would like to use classes from openbabel for molecular descriptors. In both, the simple and normal Java Snippet, I can add the openbabel.jar as an external source. Importing the classes itself doe not appear to create any problems neither, however, once I call a constructor, I get an error message saying:
Evaluation of java snippet failed for row "Row0": org.openbabel.openbabel_javaJNI.new_OBMol__SWIG_0()J
which baffles me, because the same code works perfectly fine in Eclipse (After all, the two share the same Java underneath, don't they?)
I have tried to parse the exact Error created by putting the code in a try/catch block (code below), but the output is always '?', once I try to use the constructors.
Any ideas on this one?
OBMol mol = new OBMol();
StringWriter sw = new StringWriter();