Hi,
I am adding an applet in a JSP page using an external javascript file. And I am constructing the Applet code based on the browser family (<EMBED> for Mozilla family and <OBJECT> for MS-Internet Explorer).
JavaScript Code:
var _app = navigator.appName;
if (_app == 'Mozilla' || _app == 'Netscape')
{
document.write('<embed code="ButtonMoveApplet.class"',
'width="200"',
'height="200"',
'type="application/x-java-applet;version=1.5"',
'pluginspage="pluginspage="http://java.sun.com/javase/downloads/ea.jsp"',
'archive="Appln.jar">');
}
else if (_app == 'Microsoft Internet Explorer')
{
document.write('<OBJECT ',
'classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"',
'width="200"',
'height="200">',
'<PARAM name="code" value="ButtonMoveApplet.class">',
'archive="Appln.jar"',
'</OBJECT>');
}
else
{ document.write('<p>Sorry, unsupported browser.</p>'); }
I have JARed the applet program. I placed the jar file in the same place where my JSP page exists. I am getting an error msg in the browser's status bar --> applet ButtonMoveApplet notinited when I run this from the browser (http://localhost:8080/AppletApplication). When I checked in Java Console I found java.lang.ClassNotFoundException.
My office network is configured to use a proxy. Is the browser doesn’t allow to load the applet because of the proxy? Or is there any other problem?
Any help on this will be greatly appreciated
Regards,
Red Hunt

