File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes appletviewer not showing applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "appletviewer not showing applet" Watch "appletviewer not showing applet" New topic

appletviewer not showing applet

Karen Nelson
Ranch Hand

Joined: Aug 19, 2005
Posts: 57
I have a small applet that seems to run ok when opened in a browser, but when I feed the page to appletviewer, it won't display the applet.

It might be because I'm not very familiar with appletviewer, maybe I'm using it incorrectly? (I'm just typing >appletviewer filename.html).

Or because the applet is in a package?

The applet tag I'm using is <applet code="com/rephunk/PunnettApplet.class" archive="punjar.jar,kclasses-new.jar" height=500 width=750>.

(punjar is where the applet code is, kclasses-new is a compilation of standard classes I've written, both are in the same package).

If I don't use appletviewer, my browser caches the old files and I have to keep changing the filenames to debug. Is there an easier way to do this? So far I have been developing the code as a standalone application, then converting it to an applet an the last possible moment, but always there are still a few things to fix then.

Thank you!! Karen.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Try navigating into the "com/rephunk" folder (containing the applet) and running the J/Applet with
I agree. Here's the link:
subject: appletviewer not showing applet
It's not a secret anymore!