/** * This function find the first matching filename for a Java class file from * the classpath, if none is found it returns null. * * @param className * the class to get * @return the filename for the class */ public static String findClasspathEntry(String className) { String classpath = System.getProperty("java.class.path", ""); return findClasspathEntry(className, classpath); }