facebook

Applet notinited

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #270814 Reply

    Mark Sanders
    Member

    Version: 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.x

    still 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,

    #270817 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    #270819 Reply

    Mark Sanders
    Member

    sorry about that.

    #270823 Reply

    Riyad Kalla
    Member

    No problem, just easy to keep things organized so others will participate that can help you out.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Applet notinited

You must be logged in to post in the forum log in