The error exists because the standard Java classloaders are case-sensitive to class names.
Three options:
- Ignore standard Java conventions and name all your classes lowercase (not recommended, and not possible if you are looking for a third-party class).
- Use Google's Reflections Library to look up classes in your classpath, do a case insensitive match against the given input, and use the class you find from reflection in your Class.forName() call.
- Iteration on #2: Write your own classloader that does a case-insensitive search for classes and loads the one you want.