# Applet exception: error: java.lang.ClassFormatError: Bad magic number
java.lang.ClassFormatError: Bad magic number
at java.lang.ClassLoader.defineClass(Compiled Code)
at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
at netscape.applet.AppletClassLoader.findClass(Compiled Code)
at netscape.applet.AppletClassLoader.loadClass1(Compiled Code)
* at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
at
netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled
Code)
at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled
Code)
at java.awt.EventDispatchThread.run(Compiled Code)
at
netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
Code)
Any suggestions??
Thanks
Keith Stacks
This could mean one of two things:
1, The class file you specify is corrupted,
or, more likely,
2, You aren't specifying the class file and instead are specifying
the source file or something else by mistake.
The 'magic number' is an identifier at the start of a java .class
file that says 'yes, I really am a class file' (I think the value
is 0xCAFEBABE in hex :-). The class loader uses this to check you
specify a valid file.
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
nathan
wavy...@my-dejanews.com wrote:
> Keith Stacks <kst...@xmission.com> wrote:
> > I'm trying to run my applet and am receiving the following error:
> >
> > # Applet exception: error: java.lang.ClassFormatError: Bad magic number
> > java.lang.ClassFormatError: Bad magic number
> > at java.lang.ClassLoader.defineClass(Compiled Code)
> > at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
> > at netscape.applet.AppletClassLoader.findClass(Compiled Code)
> > at netscape.applet.AppletClassLoader.loadClass1(Compiled Code)
> > * at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
> > at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
> > at
> > netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled
> > Code)
> > at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled
> > Code)
> > at java.awt.EventDispatchThread.run(Compiled Code)
> > at
> > netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
> > Code)
>