Hello Rajesh,
I got this error so many times. Even in my team others also.
For example
my applet is residing under directory
d:/root/classes/a.jar
html is in
d:/root/html/a.htm
>From my html, if I access the applet as
</applet>
codebase=../../classes
class = a.jar.
</applet>
If the above codebase is wrong, that means the path to access the
jar file is wrong, I got this error. To overcome this, I corrected my
codebase.
Hope this helps,
Kavitha
>From: "SHEDDE, RAJESH" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>Subject: Re: bad magic error
>Date: Mon, 14 Aug 2000 16:19:47 -0400
>
>
>
>Hi
>The following is the info that a friend of mine (not part of the list gave
>me)
>Thought I would share it with you guys.
>
>"I can believe that it's a corrupted class file. I don't know for a fact,
>but if the servlet engine is running on a UNIX server it's very
>likely. UNIX uses the first two bytes of a file to determine what type of
>file it is; it's called the magic number. Other systems have adopted the
>same convention (e.g. %! to start a postscript file), so I wouldn't be
>surprised if Java used it as well.
>
>Bad class path sounds much less likely, but if it's Microsoft's JVM or
>servlet engine you never know. They love strange error messages at
>Microsoft."
>
>
>
>
>
>kavitha ramasamy <[EMAIL PROTECTED]> on 08/14/2000 12:42:22 PM
>
>Please respond to "A mailing list for discussion about Sun Microsystem's
>Java
> Servlet API Technology." <[EMAIL PROTECTED]>
>
>To: [EMAIL PROTECTED]
>cc: (bcc: Rajesh Shedde/ELISG/SAIC)
>
>Subject: Re: bad magic error
>
>
>
>Hello,
>
> The applet classpath is wrong. If it is not at correct path,
>you will get this error.
>
>Kavitha
>
>
> >From: F?rat Tiryaki <[EMAIL PROTECTED]>
> >Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> > Servlet API Technology." <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: bad magic error
> >Date: Mon, 14 Aug 2000 18:58:25 +0300
> >
> >Hi All;
> >
> >I get a strange error with an applet,
> >
> >"bad magic error" Can anyone tell me what this error means
> >
> >thanks
> >F?rat
> >
> >___________________________________________________________________________
> >To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>body
> >of the message "signoff SERVLET-INTEREST".
> >
> >Archives: http://archives.java.sun.com/archives/servlet-interest.html
> >Resources: http://java.sun.com/products/servlet/external-resources.html
> >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
>
>
>
>
>
>
>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html