Hi,
I am getting exception when i am trying to open an applet in my jsp.
My jsp and applet is in same directory. My code is like:
<object
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="720"
height="500"`enter code here`
type="application/x-java-applet;version=1.5">
<param name="type" value="application/x-java-applet;version=1.5">
<param name="code" value="com.timer.AppletGenerator.class">
<param name="codebase" value=".">
<param name="ARCHIVE" value="Applet.jar, jcommon-1.0.0.jar, jfreechart-1.0.0.jar, log4j-1.2.13.jar, itext-1.3.1.jar"
embed width="720"
height="500"
type="application/x-java-applet;version=1.5"
code="com.timer.AppletGenerator.class"
codebase="."
ARCHIVE='Applet.jar, jcommon-1.0.0.jar, jfreechart-1.0.0.jar, log4j-1.2.13.jar, itext-1.3.1.jar'
>
</embed>
</object>
My AppletGenerator.class is like:
public class AppletGenerator extends JApplet
{
public void init()
{
//Some code
}
}
earlier it was woking fine. But now when i sign and verify the new jar its giving exception:
load: class com.timer.AppletGenerator.class not found.
java.lang.ClassNotFoundException: com.timer.AppletGenerator.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
I have searched a lot but didnt get any correct answer. There are few posts regarding this in stactoverflow but that also didnt work.
Thanks and Regards,