Native library is not initialized error Molexporter

User 873a9ae9d0

09-04-2016 12:30:28

HI,


 


I am using the JChem .Net and try to convert a molfile to an InChIKey(name) using the Molexporter class.


When I call Molexporter.exportToFormat(molecule,"inchikey") I get the following error:


"Native library is not initialized"


I found some references to this issue in your forum, and all them seems to advice copying (jar) files. None of the replies are for WINDOWS users.


Can one please let me know what file(s) in need to copy/rename etc. if one runs a windows computer (in my case win8.1).


Any advice/feedback is appreciated.


Best regards


Hans-Juergen Himmler

ChemAxon 2e7d8629fa

11-04-2016 07:18:51

 Dear Hans-Juergen,


 


Please refer this assembly: JChemExt.dll. You can find it in the GAC (C:\Windows\assembly\GAC_MSIL ) or in the Program Files folder (C:\Program Files (x86)\ChemAxon\JChem .NET API 16.3.2800.2944).


 


In your code use the following line:


ChemAxon.JChem.Common.Init();


 


I hope it solves your problem.


 


Best regards,


Gergely

User 873a9ae9d0

11-04-2016 09:06:13

HI Gergely,


 


thanks a lot for your help.


Problem is solved !


Have a good day


Hans-Juergen

ChemAxon 2e7d8629fa

11-04-2016 09:41:41

Good news.


Thank you for the feedback.


Regards,


Gergely