Connecting Tech Pros Worldwide Help | Site Map

Java help

Newbie
 
Join Date: Apr 2006
Location: Southern California
Posts: 31
#1: Jun 23 '06
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.NoClassDefFoundError:
that is the error what am i doing wrong?
Member
 
Join Date: Nov 2007
Location: ZIMBABWE
Posts: 118
#2: Nov 13 '07

re: Java help


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.
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#3: Nov 13 '07

re: Java help


Quote:

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.NoClassDefFoundError:
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.
Member
 
Join Date: Aug 2007
Posts: 66
#4: Nov 14 '07

re: Java help


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.
Reply