Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds


  Asked By: Bakir    Date: Aug 28    Category: Java    Views: 433

This error was generated after I downloaded j2sdk1.4.2_03 and ran the
java compiler on the demo samples files. The *.jar and *.html demos
worked fine.



2 Answers Found

Answer #1    Answered By: Richie Smith     Answered On: Aug 28

you want
$ javac demo.java
$ java demo

Ensure the file you are trying to run has a main(), and try appletviewer demo

Answer #2    Answered By: Emma Brown     Answered On: Aug 28

also, make sure '.' (current directory) is in your classpath

Didn't find what you were looking for? Find more on NoClassDefFoundError? Or get search suggestion and latest updates.