It may be a dumb question, but...

I have compiled and build an applet under JDK1.1.6 (Blackdown version)
under RedHat Linux 5.0. The compiler gives no errors.  With the current
directory being the directory where the file XYZApplet.class is and an
HTML file with the name XYZ.html in the same directory, containing the
following

<html>
  <head>
    <title></title>
  </head>
<body>
<APPLET code="XYZApplet.class" WIDTH=200 HEIGHT=100>
</APPLET>
</body>

</html>


I give the command
        appletviewer XYZ.html

I get the following errors:

load: class XYZApplet.class not found.
java.lang.ClassNotFoundException: XYZApplet
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:385)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:462)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:398)
        at sun.applet.AppletPanel.run(AppletPanel.java:237)
        at java.lang.Thread.run(Thread.java)

Why doesn't this work?
CLASSPATH shouldn't be an issue as everything is in the current
directory.  There's no 
problem running basically the same code as a standalone program with a
main.  Removing the quotation marks from around the applet name in the
HTML file does no good.  And it won't load under Netscape either.  It is
finding the class file: I get a FileNotFound error instead, if I
misspell the name of the class file.

Thanks for any ideas.

Reply via email to