FileDocCategorySizeDatePackage
mclasspath.javaAPI DocGlassfish v2 API2994Fri May 04 22:34:58 BST 2007com.sun.enterprise.tools.common.util

mclasspath

public class mclasspath extends Object
author
bnevins
version

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		String cp = System.getProperty("java.class.path");//NOI18N
		//System.out.println(cp); //NOI18N
		String ps = System.getProperty("path.separator");//NOI18N
		System.out.println("PS:  " + ps);//NOI18N

		StringTokenizer st = new StringTokenizer(cp, ps);
                String s = "Current Classpath: \n";//NOI18N
                int count = 0;
                
		while (st.hasMoreTokens()) 
		{
                    ++count;
                    s += st.nextToken() + "\n";//NOI18N
			//System.out.println(st.nextToken()); //NOI18N
		}
                s += "******** Total Classpath Entries: " + count;//NOI18N
                Reporter.verbose(s); //NOI18N
                System.out.println(cp); //NOI18N