Javatpoint Logo

Resolving start: applet not initialized Error

By: abc@gm*** On: Thu Aug 23 14:56:18 IST 2012     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
what is mean of start applet not initializedUp0Down

 
This kind of problem occurs only if applet class is not found or initialization of Applet fails.
Let's look at this code:
/*<applet code="com.MyApplet.class" width=400 height=500>
</applet> */
//package com;
import java.applet.Applet ;
import java.awt.Button ;
public class MyApplet extends Applet
{
Button b;
public void init()
{
b=new Button();
add(b);
}

}

Here, I have commented the com package. If you run this code, it will throw ClassNotFoundException MyApplet.class.
In the appletviewer tool or browser it will display start: applet not initialized.
You may solve this problem if you uncomment the package com.
Image Created0Down

By: [email protected] On: Fri Aug 24 11:52:46 IST 2012 Question Reputation0 Answer Reputation20 Belt Series Points0 20User Image
Are You Satisfied :0Yes3No
 
Image Created0Down

By: [email protected] On: Fri Nov 16 18:37:09 IST 2018 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No