Hi,

I am trying to embed the applet tag in my html page
and I encounter the "Class not found Exception".
I have set the codebase to point to the URL where my
JmolApplet.jar resides and it still refuses to locate
the class. Can anyone help me figure as to what the
problem could be? The applet does load if I make use
of the Jmol.js script but for other reasons I would
want to embed the applet tag directly instead of
making a call to the javascript.

The snippet of the code I use to load my applet is a s
follows:

<body> 
<applet code='JmolApplet.class' 
codebase='http://rna.informatics.indiana.edu/cgi-bin/hgopalak/jmol'
archive='JmolApplet.jar' width='200' height='350'>  
<param name='loadInline' value=''>
</applet>
</body></html>


The error thrown is as follows:

load: class JmolApplet.class not found.
java.lang.ClassNotFoundException: JmolApplet.class
at sun.applet.AppletClassLoader.findClass(Unknown
Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown
Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown
Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown
Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection
failed.
at sun.applet.AppletClassLoader.getBytes(Unknown
Source)
at sun.applet.AppletClassLoader.access$100(Unknown
Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native
Method)
... 10 more

Thanks,
Harini

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to