/* applet j22classpath reads and parses Java classpath */ /* source code designed for JavaPlugin1.2.2 and RSA signing */ /* M. Gallant 9/99 */ import java.awt.*; import java.applet.*; import java.io.* ; import java.util.*; public class j22classpath extends Applet { TextArea ta = new TextArea (15, 75); public void init() { this.setBackground(new Color(192,192,192)) ; add(ta) ; String clspth = System.getProperty("java.class.path") ; String platform = System.getProperty("os.name") ; StringTokenizer st = null; if(platform.indexOf("Win")>=0) st = new StringTokenizer(clspth,"\t\n\r;"); // Windows else st = new StringTokenizer(clspth,"\t\n\r:"); //UNIX or Mac ta.setText("------- Classpath Components: ---------------\n") ; while (st.hasMoreTokens()) { ta.append(st.nextToken()+"\n"); } } }