Example usage for java.lang ClassNotFoundException printStackTrace

List of usage examples for java.lang ClassNotFoundException printStackTrace

Introduction

In this page you can find the example usage for java.lang ClassNotFoundException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:Main.java

public static Class getPayActivity() {
    try {/*from w ww .j  ava 2  s.c  o  m*/
        return Class.forName("com.imsiper.community.tjpayutils.PayActivity");
    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    }
    return null;
}

From source file:Main.java

public static Class getNewCropActivity() {
    try {/*from   w  w  w. j  a  v  a2s.c o  m*/
        return Class.forName("com.photostars.xcrop.NewCropActivity");
    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    }
    return null;
}

From source file:Main.java

public static Class getLoginActivity() {
    try {/* ww w.  ja  v a  2 s  .c  o m*/
        return Class.forName("com.imsiper.community.TJUtils.LoginActivity");
    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    }
    return null;
}

From source file:Main.java

public static Class getToolMainActivity() {
    try {// ww w  .  j a  v  a 2  s .c  o  m
        return Class.forName("com.imsiper.tool.ToolMainActivity");
    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    }
    return null;
}

From source file:Main.java

public static Class getOperationXML() {
    try {/*  ww  w .  j  a  v a2s .  c o m*/
        return Class.forName("com.imsiper.community.tjxmlutil.OperationXML");
    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    }
    return null;
}

From source file:Main.java

public static Class forClassName(ClassLoader classLoader, String className) {
    try {//from   w w w  . j a v a  2s.  co m
        return classLoader.loadClass(className);
    } catch (ClassNotFoundException e) {
        e.printStackTrace();
        return null;
    }
}

From source file:Main.java

public static boolean isSupported() {
    try {/*from  ww w  .jav  a  2s  .c  o m*/
        return Class.forName(CLASS_NAME) != null;
    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    }
    return false;
}

From source file:Main.java

public static boolean isOkHttpAvailable() {
    try {/*from w  w w . j  a v  a  2 s .co  m*/
        Class cls = Class.forName("okhttp3.OkHttpClient");
        return true;
    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    }
    return false;
}

From source file:Main.java

public static Class<?> getClassByString(String className) {
    Class<?> cls = null;//from   www  . j  a va 2s  .c om
    try {
        cls = Class.forName(className);
    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    }
    return cls;
}

From source file:Main.java

public static Class<?> classFromPackagePath(String packagePath) {

    try {//from   w  ww.  j a v  a2 s . c o  m
        Class<?> aClass = Class.forName(packagePath);
        return aClass;
    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    }
    return null;
}