How to fix ClassNotFoundException in Java
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 19327
Total Votes: 154 votes
Category: JAVA/Core JAVA
Submitted on: 2011-08-27 11:56:06
Submitted By: Javin Paul
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...