• Post Reply Bookmark Topic Watch Topic
  • New Topic

ClassNotFoundException and NoClassFoundError  RSS feed

 
KasiMurugan Ramasamy
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I want to know, when would occur ClassNotFoundExcpetion and When would occur NoClassFoundError.


Thanks & Regards
Kasimurugan R.
 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ClassNotFound occurs when the class is not found in the classpath by the classloader. The definition exception occurs when it finds the class, but cannot resolve its definition, i.e., it may not find other instances data variables which are objects of another class, or any missing method signature due to existence of different versions of the same class, etc.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!