Java Class Exist classExists(String name)

Here you can find the source of classExists(String name)

Description

class Exists

License

LGPL

Declaration

public static boolean classExists(String name) 

Method Source Code

//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;
        }
    }
}

Related

  1. classExists(String className)
  2. classExists(String className)
  3. classExists(String className)
  4. classExists(String className, Object context)
  5. classExists(String implClassName)