User 447e36cf40
12-05-2011 17:16:11
Hi,
I am implementing the code below :
script type="text/javascript" src="marvin.js"></script>
<script type="text/javascript">
mview_begin("", 200, 200);
And I am getting the following exception:
load: class chemaxon/marvin/applet/JMViewLaunch not found.
java.lang.ClassNotFoundException: chemaxon.marvin.applet.JMViewLaunch
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Any help is appreciated.
Thanks
ChemAxon e274e1bada
12-05-2011 17:37:21
Hi,
I moved the topic to the appropriate forum. The Marvin experts will respond soon.
Regards, Edvard
ChemAxon 7c2d26e5cf
17-05-2011 10:10:31
mview_begin("", 200, 200);
In your example, the value of the applet codebase attribute is invalid (empty string).
If your HTML document is in the same directory than jmarvin.jar, you have to modify the above code like this:
mview_begin(".", 200, 200);
User 447e36cf40
17-05-2011 18:18:59
Thank you for reply. I did changed the code to;
mview_begin(".", 200, 200);
If I run the jsp by itself itsdisplaying the applet but if I call the same jsp from an servlet its throwing the below exception;
load: class chemaxon/marvin/applet/JMViewLaunch not found
I have put appletlaunch.jar and marvin.js in the same directory where the jsp is.
Thanks,
ChemAxon 7c2d26e5cf
18-05-2011 10:54:12
The working dir of the servlet is differ than the jsp.
So the path from the servlet generated page to the applet dir is not the same than in JSP.