Tarek;
Are you using NT ?
If so:
Make absolutely sure that the OS case of the class
file name is identical to that of the class name. I
have observed this error message when the two differ
and it can happen because NT supports case
differentiation, but is case insensitive (if that
makes sense) but Java is case sensitive. Consequently
it is possible for a class FooBar to be in a file
called FOOBar.class. NT won't mind and it may compile,
but if you try and load it into a JVM, you may have
problems.
//Nicholas
--- Tarek Shaar <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> It is the second time I am posting this message but
> I had only
> one response so far, can some one help me with this
> please:
>
> I have a servlet that is calling an applet which is
> embedded in a HTML page.
>
> The servlet seems to pick up the HTML page fine
> using the code
>
> //This works fine
> String url =
>
response.encodeUrl("http://MyIP:8080/ClientSidePage.html");
> response.sendRedirect(url);
>
> Within my ClientSidePage.html I have an applet:
>
> <APPLET
> CODE = "ClientSide1.class"
> NAME = "ClientSide1"
> WIDTH = 400
> HEIGHT = 300
> HSPACE = 0
> VSPACE = 0
> ALIGN = middle
> >
> </APPLET>
>
>
> When I try to run my applet in Netscape I get the
> error:
> "java.lang.ClassFormatException: Wrong class name
> inside class file"
>
> even though the name of my class is ClientSide1.java
> and the name of the amin class in the code is the
> same.
>
> When I run it using IE
> "Can't find class ClientSide1.class!!!!!Why Why !!!
>
> The class file ClientSide1 and the html page
> clientSidePage.html are placed in the
> same directory "on my Java Webserver 2.0" in
> public_html.
>
> I tryed every thing but still the same errors
>
> Thanking every one in anticipation.
>
> Tarek
>
>
___________________________________________________________________________
> 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
>
=====
"Suzie, Suzie, Suzie, Suzie
Suzie, Suzie Greenberg"
Suzie Greenberg, Phish
--
Nicholas Whitehead
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.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