Java help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mandogon
    New Member
    • Apr 2006
    • 31

    #1

    Java help

    How could i compile java code im getting an errror when trying to run a program in the command promt
    Exception in thread "main" java.lang.NoCla ssDefFoundError :
    that is the error what am i doing wrong?
  • heat84
    New Member
    • Nov 2007
    • 118

    #2
    Are you passing the String array as an argument in your method .Please put the code on the site so that we may see and then help.

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by mandogon
      How could i compile java code im getting an errror when trying to run a program in the command promt
      Exception in thread "main" java.lang.NoCla ssDefFoundError :
      that is the error what am i doing wrong?
      Either the code did not compile successfully or the you are not specifying the correct classpath of a required class.

      Comment

      • CodeTilYaDrop
        New Member
        • Aug 2007
        • 66

        #4
        Google the exception and it will help you understand your problem. You will probably get a link to the API on it, and this has good information.

        Comment

        Working...