Molconverter class not found

User 1f4905a987

26-11-2012 20:51:25

I'm working with a python script that was written for Windows, but on a Mac. It calls the molconverter, but when it does I receive the error message:



Exception in thread "main" java.lang.NoClassDefFoundError: chemaxon/formats/MolConverter

Caused by: java.lang.ClassNotFoundException: chemaxon.formats.MolConverter

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247)


I copied the molconverter binary to the standard directory,  /usr/bin/. Maybe I'm supposed to move another file.


Thoughts as to what I might do to fix the problem? Thanks

ChemAxon e7b9408ca1

27-11-2012 09:41:51

Indeed, if you move the scripts in bin they will not find the jar files. I recommend to move back the script to its original location, and either add the bin directory to your path, or add a symbolic link to the script(s), for instance:



ln -s /opt/marvinbeans-5.11/bin/molconvert /usr/bin/molconvert

User 1f4905a987

04-12-2012 16:35:30

Yes, that did the trick. I was adding it to the PATH, but only for a single terminal instance. So every time I closed Terminal and tried to rerun the script I had the problem again.


All fixed. Thanks