Results 1 to 3 of 3

Thread: troubleshooting

  1. #1
    ahhreeyell is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default troubleshooting

    Hello, I encounter the following errors every time I try to run my code:

    load: class .class not found.
    java.lang.ClassNotFoundException: .class
    at sun.applet.AppletClassLoader.findClass(AppletClass Loader.java:211)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
    at sun.applet.AppletClassLoader.loadClass(AppletClass Loader.java:144)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 48)
    at sun.applet.AppletClassLoader.loadCode(AppletClassL oader.java:662)
    at sun.applet.AppletPanel.createApplet(AppletPanel.ja va:807)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java: 714)
    at sun.applet.AppletPanel.run(AppletPanel.java:368)
    at java.lang.Thread.run(Thread.java:680)

    Here is my code:

    import javax.swing.JApplet;
    import java.awt.Graphics;

    public class olympicRings extends JApplet {
    public void paint(Graphics canvas){
    canvas.drawOval(100, 100, 100, 100);
    }

    }

    Could it be that I don't have the graphics library properly installed? Please help! Thanks!

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    6

    Default

    Could it be that I don't have the graphics library properly installed?
    No. How are you trying to run this? Command line? IDE? Provide full details

  3. #3
    ahhreeyell is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Problems troubleshooting errors
    By tnixon22 in forum New To Java
    Replies: 29
    Last Post: 02-21-2011, 01:42 AM

Tags for this Thread

Posting Permissions

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