- This topic has 3 replies, 2 voices, and was last updated 18 years ago by
Riyad Kalla.
-
AuthorPosts
-
Mark SandersMemberVersion: 5.5.1 GA
Build id: 20070521-5.5.1-GA
Windows XP Pro SP 2
jdk1.5.0_09
jre1.5.0_09
Firefox 2.0.0.3
Tomcat 5.xstill learning java.
I can run the applet samples that come with java just fine in both IE and Firefox. However, when I try to run an applet i have created and deployed to Tomcat, i get an error at the bottom saying Applet myApplet notinited. the java console shows this:—————————————————-
load: class com.mark.myApplet.class not found.
java.lang.ClassNotFoundException: com.mark.myApplet.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
———————————————————————–
my index.jsp body looks like this:
<applet codebase=”.”
code=”com.mark.myApplet.class”
name=”myApplet”
width=”320″
height=”240″></applet>
————————————————————————
also note that the applet runs fine as an applet, but not in a webpage.Thanks,
May 29, 2007 at 11:57 am #270817
Riyad KallaMemberMoving to OT > Soft Dev
May 29, 2007 at 12:08 pm #270819
Mark SandersMembersorry about that.
May 29, 2007 at 12:51 pm #270823
Riyad KallaMemberNo problem, just easy to keep things organized so others will participate that can help you out.
-
AuthorPosts