NoClassDefFoundError
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   aniket_mittal
Posted On:   Monday, June 15, 2009 01:16 PM

I'm getting NoClassDefFoundError while running an Applet. It gets compiled without problem but does run. I have imported all the classes from the package, and have classpath and java_home and path variables too. plz check into this. /* */ import java.awt.*; import java.applet.*; import JavaPackage.Sprite; import JavaPackage.Sprite2D; import JavaPackage.RectSprite; import JavaPackage.Moveable; import JavaPackage.BouncingRect; public class bounce extends Applet implements Runnable { Thread animation; Graphics offscreen; Image image; static final int NUM_SPRITES=3; static final int REFRESH_RATE=50;    More>>

I'm getting NoClassDefFoundError while running an Applet.
It gets compiled without problem but does run.
I have imported all the classes from the package, and have classpath and java_home and path variables too.
plz check into this.

			
/* */
import java.awt.*;
import java.applet.*;
import JavaPackage.Sprite;
import JavaPackage.Sprite2D;
import JavaPackage.RectSprite;
import JavaPackage.Moveable;
import JavaPackage.BouncingRect;
public class bounce extends Applet implements Runnable
{
Thread animation;
Graphics offscreen;
Image image;
static final int NUM_SPRITES=3;
static final int REFRESH_RATE=50;

Sprite sprites[];
int w,h;
boolean running=false;
public void init()
{.....

The error looks like:
NoClassDefFoundError: JavaPackage/Sprite
although the Sprite.class file is there.    <<Less
About | Sitemap | Contact