Exception in thread “main” java.lang.NoClassDefFoundError
This error comes when one of the class required in execution of program in not specified in class path. You might be running your program using some IDE or command line.
1. IDE : If you are sure that you have specified your class or Jar file containing required class flle in your classpath, by adding references to your project, Please verify again whether you have chosen the right jar/classfile or not. Try to refresh your project, there can be some caching problem.
2. Command line: Please check your classpath variable in command again. There can be misspelled command or misspelled classpath. 99% times there will be typo, see it again, you will get that.
And always remember ‘Computers never make mistakes, Humans do!
Most Commented Posts
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments
No comments yet.
Leave a comment