Results 1 to 3 of 3
Thread: troubleshooting
- 03-17-2011, 08:44 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 2
- Rep Power
- 0
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!
- 03-17-2011, 09:26 PM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,609
- Rep Power
- 5
No. How are you trying to run this? Command line? IDE? Provide full detailsCould it be that I don't have the graphics library properly installed?
- 03-18-2011, 02:54 AM #3
Member
- Join Date
- Mar 2011
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Problems troubleshooting errors
By tnixon22 in forum New To JavaReplies: 29Last Post: 02-21-2011, 01:42 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks