java applet error. class not found

I’m trying to write a simple HelloWorld applet. I wrote the code and compiled it with ‘gcj -C’ to
create the HelloWorld.class file. I then created a HelloWorld.html file
to load the class file. The error i’m getting is class not found (see
below) when I click on the html file with my browser. I have all these
files in the same directory, and have tried setting the CLASSPATH
variable to that directory. Is there another path setting I need to make
or perhaps I have a problem with my environment ? (sles10 sp1)

thanks in advance


load: class /cs/java/HelloWorld.class’ not found.
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at Source)
at Source)

contents of /cs/java directory


setting of CLASSPATH directory



usermode504’s Profile:
View this thread: