This error was generated after I downloaded j2sdk1.4.2_03 and ran thejava compiler on the demo samples files. The *.jar and *.html demosworked fine.
you want$ javac demo.java$ java demoEnsure the file you are trying to run has a main(), and try appletviewer demo
also, make sure '.' (current directory) is in your classpath