1 23 24 29 30 package com.sun.enterprise.tools.common.util; 31 import com.sun.enterprise.tools.common.util.diagnostics.Reporter; 32 import java.util.*; 33 38 public class mclasspath extends java.lang.Object { 39 public static void main(String [] args) 40 { 41 String cp = System.getProperty("java.class.path"); String ps = System.getProperty("path.separator"); System.out.println("PS: " + ps); 46 StringTokenizer st = new StringTokenizer(cp, ps); 47 String s = "Current Classpath: \n"; int count = 0; 49 50 while (st.hasMoreTokens()) 51 { 52 ++count; 53 s += st.nextToken() + "\n"; } 56 s += "******** Total Classpath Entries: " + count; Reporter.verbose(s); System.out.println(cp); } 60 } 61 | Popular Tags |