Here you can find the source of classExists(String name)
public static boolean classExists(String name)
//package com.java2s; //License from project: LGPL public class Main { public static boolean classExists(String name) { try {/* w ww.java2 s . c o m*/ Class.forName(name); return true; } catch (Exception e) { return false; } } }