File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Loading AppletClass from jar-file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Loading AppletClass from jar-file" Watch "Loading AppletClass from jar-file" New topic
Author

Loading AppletClass from jar-file

Roman Schmidt
Greenhorn

Joined: Dec 14, 2001
Posts: 1
Hi!
I've got problems loading my ChatApplet.class from a jar-file... I even tried .cab and .zip files.
IE 5.00 says "ChatApplet not found" and Netscape 4.73 says "java.lang.ClassFormatError:Wrong class name inside class file".
The classes in the jar-file all belong to a package named jchat.
Should I use code="jchat.ChatApplet" instead of code="ChatApplet"? I tried both... same problem!
This is the HTML-Code I use:
<APPLET
CODE = "ChatApplet"
ARCHIVE = "jchat.jar"
WIDTH = 400
HEIGHT = 300
ALIGN = top>
</APPLET>
All files are situated in the same folder on the webserver.
Any ideas?
Thanks in advance
Roman
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loading AppletClass from jar-file