How to fix ClassNotFoundException in Java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

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

Statistics

  • Total Hits - 27450

  • Total Votes - 139 votes

  • Vote Up - 57 votes

  • Vote Down - 82 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

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

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


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements