Results 1 to 3 of 3

Thread: applet error

  1. #1
    Peter is offline Senior Member
    Join Date
    Jun 2007
    Posts
    119
    Rep Power
    0

    Default applet error

    I can't run an applet, it doesn't execute init() method
    Java Code:
    load: class .class not found.
    java.lang.ClassNotFoundException: .class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:183)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass (AppletClassLoader.java:127)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:626)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java :778)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:707)
        at sun.applet.AppletPanel.run(AppletPanel.java:361)
        at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.FileNotFoundException : /class.class (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java :66)
        at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
        at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
        at sun.applet.AppletClassLoader.getBytes (AppletClassLoader.java:295)
        at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
        at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:173)
        at java.security.AccessController.doPrivileged (Native Method)
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:170)
        ... 8 more

  2. #2
    Jack is offline Senior Member
    Join Date
    Jun 2007
    Posts
    130
    Rep Power
    0

    Default

    maybe is a version problem
    Do you have the last version of java sdk?

  3. #3
    Heather is offline Senior Member
    Join Date
    Jun 2007
    Posts
    164
    Rep Power
    7

    Default

    I had this error when I forgot to import Applet object.

    import java.applet.Applet;

    All objects you use from the Java class libraries must be imported. The only exception to this rule is the java.lang class which is automatically imported.

Similar Threads

  1. First Applet HELP????
    By nvidia in forum New To Java
    Replies: 0
    Last Post: 08-13-2007, 10:11 PM
  2. Applet Question
    By nvidia in forum Java Applets
    Replies: 1
    Last Post: 08-13-2007, 07:31 PM
  3. ERROR: nullPointerException in applet
    By barney in forum Java Applets
    Replies: 1
    Last Post: 08-07-2007, 07:11 AM
  4. Applet
    By kapoorje in forum Java Applets
    Replies: 0
    Last Post: 07-24-2007, 04:06 PM
  5. Replies: 4
    Last Post: 06-08-2007, 06:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •