How to solve "classnotfound" exception in java?

Example:

The error implies the JVM couldn't find a class you referenced.

Solution:

Ensure the class exists, has been compiled, and is located in the classpath.

Beginner's Guide to Java