Class ClassPathContains

  extended byorg.multijava.util.ClassPathContains

public class ClassPathContains
extends Object

This class is a command-line utility to test for the presence of a given class on the CLASSPATH. It is invoked like: java org.multijava.util.Classpath {pack.subpack.Class}+ It returns an error code of 0 if all the listed classes exist on the CLASSPATH and 1 otherwise. Alternatively, with an option of -d as the first argument, it interprets argument 2 as a file or directory name, and tests which of arguments 3 and following contain argument 2, printing the first such argument that does contain it. It exits with 0 if one is found, and 1 if none is found. - DRCok 11/9/2003

$Revision: 1.4 $
Curtis Clifton

Constructor Summary
Method Summary
private static boolean classExists(String fullyQualifiedClassName)
private static void find(String[] args)
static void main(String[] args)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ClassPathContains()
Method Detail


public static void main(String[] args)


private static boolean classExists(String fullyQualifiedClassName)


private static void find(String[] args)


JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.