How to fix ClassNotFoundException in Java

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

How to fix ClassNotFoundException in Java

As the name suggests java.lang.classNotFoundException in Java is a subclass of Exception and Comes when Java Virtual Machine tries to load a particula
http://javarevisited.blogspot.com/2011/08/classnotfoundexception-in-java-example.html
  • Total Hits: 19771

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 154 votes

  • Category: JAVA/Core JAVA

  • Submitted on: 2011-08-27 11:56:06

  • Submitted By: Javin Paul

  • Set as Favorite

Description:

As the name suggests java.lang.classNotFoundException in Java is a subclass of Exception and Comes when Java Virtual Machine tries to load a particular class and doesn't found the requested class in classpath. ClassNotFoundException is a checked Exception and you need to provide explicitly Exception handling while using methods which can throw java.lang.classNotFoundException in Java either by using try-catch block or by using throws clause. Though underlying concept of classnotfound exception is simple it always manifest itself in such format that you need to spend some time to figure out what exactly wrong with your java classpath. If you want to know secrets of java classpath see the link.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 42.21%  65
 Two starsTwo star  Vote LeftVote MiddleVote Right 9.74%  15
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.04%  17
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 10.39%  16
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 26.62%  41

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.





Advertisements
Advertisements