problem running Example script

User 4cc64a63fe

27-11-2012 16:51:52

Hi


I would like to learn how to use the java API and i tried the example provided but i got this error when running.


mac2:Java kc$ javac ElementalAnalyserPluginExample.java -classpath /Applications/ChemAxon/MarvinBeans/lib/MarvinBeans.jar



lcsb1mac2:Java kc$ java ElementalAnalyserPluginExampleException in thread "main" java.lang.NoClassDefFoundError: chemaxon/marvin/plugin/PluginException
Caused by: java.lang.ClassNotFoundException: chemaxon.marvin.plugin.PluginException
    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:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)


should i include some other flags at runtime?


Thank you.

ChemAxon 2cd598e7ad

30-11-2012 16:13:56

Hi Keng,


Probably adding MarvinBeans.jar to the classpath while running the Example will solve the problem.


Regards, Domi