I am just a beginner, but I have run into this problem also. So here are my
thoughts:
Is your applet part of a package? If so I think you need to reference your
applett as:
CODE = "PackageName.ClassName.class"
If it is part of a package, you might also have to put it in a folder that
has the same name as a package. Since I am new to this I don't know if this
is the right way to do it or not, it just seems to work.
Is this a hack? Is there a better way to do this?
Thanks,
Jeff
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Tarek
Shaar
Sent: Thursday, February 03, 2000 6:40 AM
To: [EMAIL PROTECTED]
Subject: It just does not want to work.
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
___________________________________________________________________________
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