public static boolean isClassPresent(String classname) {
		try {
			Class.forName(classname);
			return true;
		} catch (ClassNotFoundException e) {

		}
		return false;
	}
public static boolean isClassPresent ( String classname ) { try { Class . forName ( classname ) ; return true ; } catch ( ClassNotFoundException e ) { } return false ; }
Checks whether the class is present.

@param classname
the name of class to be checked
@return true if the class is present.