Marvin Sketch error at loading

User 90425de59b

13-10-2009 11:00:38

Hi,


I'm currently trying to include the marvin sketcher in a java application. I've an exception thrown at the initialization of the sketcher object:


sketcher = new MSketchPane();


Throws the following exception:


Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: cb/aloe/swing/tools/DockPane
        at chemaxon.marvin.beans.MSketchPane.<init>(Unknown Source)
        at chemaxon.marvin.beans.MSketchPane.<init>(Unknown Source)

<snip>
Caused by: java.lang.ClassNotFoundException: cb.aloe.swing.tools.DockPane
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 35 more


Here is my java -version output:


java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)



I really don't understand, as the sketcher standalone program works fine. I'm developping under netbeans 6.5.1 and I'm using MarvinBeans 5.2.0


Thanks in advance.
Vincent.


 

ChemAxon 7c2d26e5cf

13-10-2009 19:48:10

To be able to launch MarvinSketch, some additional jars are also required. These jars are enumerated in the Class-Path attribute of the manifest file of MarvinBeans.jar. You can find these jars beside MarvinBeans.jar (in the same directory). Some of them are required by startup, others are loaded dynamically by running.


In the following document, you can get an overview which part of the code requires which jars.


http://www.chemaxon.com/marvin/help/applications/libraries.html


So, plese add these jars to the CLASSPATH of your application.