• Post Reply Bookmark Topic Watch Topic
  • New Topic

runtime error  RSS feed

 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
i am instaled java5 in my system it was instled in proper manner when i checked version it was showing correct,but the problem is whe i run my simple program it is showing this error

Exception in thread "main" java.lang.NoClassDefFoundError: Practice(Practice is my program name)please help me what is the problem.
Regards,
vishnu
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your Practice class is not in the classpath. Try to use "-cp" option with the "java" command. For example, if you're in the same directory as the Practice class : java -cp . Practice
 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Christophe,
my program is there in D: i checked this one is there in class path but it was showing same error.

Regards,
vishnu
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i checked this one is there in class path

How did you check this ?
 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I try in commend prompt enterning into that folder it was showing what the path is there in environment variables this type of checking is correct or not. i try what you say i failed in that way .

Regards,
vishnu
[ August 20, 2007: Message edited by: vishnu vardhan ]
 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Christophe Verre,
i try what ever you said and i get output Thanks once again.

Regards,
vishnu.
[ August 21, 2007: Message edited by: vishnu vardhan ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!