public static boolean classExistsAndIsLoadable(String className)
    {
        try
        {
            Class.forName(className);

            return true;
        }
        catch (ClassNotFoundException e)
        {
            // Exception noted and ignored.
            e = null;

            return false;
        }
    }
public static boolean classExistsAndIsLoadable ( String className ) { try { Class . forName ( className ) ; return true ; } catch ( ClassNotFoundException e ) { e = null ; return false ; } }
Checks if the named class exists and is loadable.

@param  className The class to check for.

@return <tt>true</tt> if the named class exists and is loadable.