marvin applet error

User 3afdb4ab90

28-02-2010 20:24:14

I'm using marvin 5.3.1; Java 1.6.0_10-rc; Firefox 3.5.8; Windows XP


The html below should show two images, but only the first is shown.  The <applet> shows an error:

load: class JMViewLaunch not found.

java.lang.ClassNotFoundException: JMViewLaunch

    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)

    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)

    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)

    at java.lang.Thread.run(Unknown Source)

Caused by: java.io.IOException: open HTTP connection failed:http://vmubuntu/marvin/JMViewLaunch.class

    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)

    at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)

    at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)

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

    ... 7 more

Exception: java.lang.ClassNotFoundException: JMViewLaunch



<html>

<head>

<script src="/marvin/marvin.js"></script>

</head>

<body>

<script>

mview_begin("/marvin", 150, 150);

mview_param("mol", "c1ccccc1C(=O)NC");

mview_end();

</script>

<applet CODEBASE="/marvin" ARCHIVE="appletlaunch.jar" CODE="JMViewLaunch" WIDTH=150 HEIGHT=150>

<param NAME="mol" VALUE="c1ccccc1C(=O)NC">

</applet>

</body>

</html>

ChemAxon 5433b8e56b

28-02-2010 21:16:13

Hi,


yes, there were a change in 5.3.0. The applet classes had been moved to chemaxon.marvin.applet package. So if you specify the applet tag yourself, then you have to set the CODE parameter to chemaxon.marvin.applet.JMViewLaunch not simply to JMViewLaunch.


Best regards,
Istvan

User 3afdb4ab90

28-02-2010 22:15:46

Thanks.  This fixes my problem.


 


TJ