Do not add the ".class" extentextention to the name,; the Java programinterpreter figureswill thisalready outbe forable to locate the file based on the class name you provided, and youadding the extention incorrectly will justsimply confuse it.
error:
<p style="text-align:left;">
Exception in thread "main" java.lang.NoClassDefFoundError: /var/www/html/HelloWorld/class