File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Loading AppletClass from jar-file

Roman Schmidt

Joined: Dec 14, 2001
Posts: 1
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:
CODE = "ChatApplet"
ARCHIVE = "jchat.jar"
WIDTH = 400
HEIGHT = 300
ALIGN = top>
All files are situated in the same folder on the webserver.
Any ideas?
Thanks in advance
I agree. Here's the link:
subject: Loading AppletClass from jar-file
It's not a secret anymore!