guys i trying to run simple applet program but getting the same error that "START:APPLET NOT INTALIZIED".i save both of files in the same folder "bin" but yet the same error.can any one help me.here is my code[

import java.applet.*;
import java.awt.*;

public class  move extends Applet{
 int x_pos = 10;
int y_pos = 100;
int radius = 20;


   public void paint (Graphics g)
{

      // set color
      g.setColor (Color.red);

      // paint a filled colored circle
      g.fillOval (x_pos - radius, y_pos - radius, 2 * radius, 2 * radius);

}
  }

and in html

<applet code="move.class" width=250 height=350>
</applet>

What is the error message in the browser's java console?
If you have any questions about it, please copy and paste the full text here.

Thiz error message

load: class move.class not found.
java.lang.ClassNotFoundException: move.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Wha6t's the error man, its running perfectly.

Remove the .class extension from the name of the class. Have the filename only: code=move
Some browsers are looking for the class class in the package move: the file would class.class in the folder move.

What browser are you using and on what OS?

i am using firefox.

and on what OS?

its xp

Does the applet work now?

No man its giving the same error and is there problem in my broswer and which broswer are you using

The error should be different if you removed the .class extension.
Could you copy and paste here the error message.

I'm using Firefox 3.6.3 on WinXP

Here's the error I get when the browser can not find the class file:

load: class MoveAppletX not found.
java.lang.ClassNotFoundException: MoveAppletX
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: D:\JavaDevelopment\Testing\ForumQuestions3\MoveAppletX.class (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
...

here is the error while i remove the .class extension

load: class move not found.
java.lang.ClassNotFoundException: move
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Where is the move.class file? Is it in the same folder with the html file?
Did you compile the move.java file to create the move.class file?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.