User 3d3f3767a2
09-07-2013 00:22:53
Hi there,
When I try to convert a SMILES to InChI or InChI key using the REST web service (just using the demo page, locally on my computer) for stringMolExport, I get the following exception:
{
"errorCode": 0,
"errorMessage": "Native library is not initialized.",
"rootCause": "chemaxon.marvin.io.MolExportException"
}
I am running tomcat on OSX 10.8. Do I need to somehow load up the InChI library somewhere? I'm just using the .war file to run the server in tomcat. I'm using the latest java 1.7 release and the latest release of web services (6.0.2).
Thanks,
Craig
P.S. The REST web services are a pleasure to use so far!
User 3d3f3767a2
11-07-2013 18:22:55
I have this working fine in Linux, so I assume it is a Mac OSX issue.
User 3d3f3767a2
11-07-2013 18:42:28
I have this working fine in Linux, so I assume it is a Mac OSX issue.
ChemAxon e07e2a364b
12-07-2013 16:25:51
We use jni-inchi library and as far as can remember we already had some issue with its MacOS support. We are going to investigate this issue.
User 3d3f3767a2
24-07-2013 16:17:38
Sounds good. It also happens when trying to save a file to InChI format in the marvin applet, as well as in JChem SOAP webservices.
I'm wondering if upgrading to Java 7 caused this to happen? I have 3 folders in my .chemaxon/lib directory:
inchi-1.3
inchi-1_3jni
osx
The osx directory is empty.
I'm wondering if the inchi library is compatible with java 7?
Thanks,
Craig
ChemAxon d26931946c
15-07-2014 15:13:13
Hi Craig,
I'm sorry for the late answer.
We've managed to track down the root of the issue and it turned out to be a tricky one:
In Java 7 on Mac, the extension of the native libraries have changed.
If you create a symlink or copy the libinchi.jnilib to libinchi.dylib, Inchi starts to work.
We will fix this issue in one of the upcoming release in this month.
Regards,
Peter
User 36d2400e51
06-05-2016 19:55:15
On OSX, libinchi is still being installed with the .jnilib extension and will fail to initialize. Changing it to dylib makes everything work well. I came across this solution in a two year old post, but seems like something that should be fixed by now. Just a friendly heads up.
Thanks,
Dan