Re: [Open Babel] Java API: Can't use OB anymore due to UnsatisfiedLinkError

2014-03-20 Thread Joos Kiener
Found the issue:

I recently installed Avogadro which ships with a different version of
openbabel-2.dll. Because Avogadro adds PATH information to System variables
in contrast to OpenBabel which uses user variables for PATH, the
openbabel-2.dll in Avogadro is picked up first.

My solution is to manually add the path to the openbabel installation to
System PATH BEFORE Avogadro.



--
View this message in context: 
http://forums.openbabel.org/Java-API-Can-t-use-OB-anymore-due-to-UnsatisfiedLinkError-tp4657311p4657313.html
Sent from the General discussion mailing list archive at Nabble.com.

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


[Open Babel] Java API: Can't use OB anymore due to UnsatisfiedLinkError

2014-03-19 Thread Joos Kiener
I'm constantly getting an 

UnsatisfiedLinkError: C:\Program Files\OpenBabel-2.3.2\openbabel_java.dll:
The specified procedure could not be found

exception when calling 

System.loadLibrary(openbabel_java);

This used to work previously on the same laptop. Now it has been couple of
weeks since I last used the Java API so I have no clue what change might
have affected this. PATH is set correctly. I also tried System.load with
abolsute path to dll and the result is the same exception.

I also re-installed openbabel (and restarted) but to no avail. 

Does anyone here have an idea what could be causing this? A dependency
loaded by openbabel_java.dll (or openbable-2.dll)?



--
View this message in context: 
http://forums.openbabel.org/Java-API-Can-t-use-OB-anymore-due-to-UnsatisfiedLinkError-tp4657311.html
Sent from the General discussion mailing list archive at Nabble.com.

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


Re: [Open Babel] Java API: Can't use OB anymore due to UnsatisfiedLinkError

2014-03-19 Thread Joos Kiener
I just realized that the python extensions fails with the same error:

 import pybel
Traceback (most recent call last):
  File stdin, line 1, in module
  File C:\Python27\lib\site-packages\pybel.py, line 52, in module
import openbabel as ob
  File C:\Python27\lib\site-packages\openbabel.py, line 37, in module
_openbabel = swig_import_helper()
  File C:\Python27\lib\site-packages\openbabel.py, line 33, in
swig_import_helper
_mod = imp.load_module('_openbabel', fp, pathname, description)
*ImportError: DLL load failed: The specified procedure could not be found.*



--
View this message in context: 
http://forums.openbabel.org/Java-API-Can-t-use-OB-anymore-due-to-UnsatisfiedLinkError-tp4657311p4657312.html
Sent from the General discussion mailing list archive at Nabble.com.

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss