FileDocCategorySizeDatePackage
SysPropSet.javaAPI DocExample701Sat Nov 25 12:55:02 GMT 2000None

SysPropSet

public class SysPropSet extends Object
Try adding one or more item(s) to class path.

Fields Summary
static Properties
p
Constructors Summary
Methods Summary
static java.lang.StringgetClassPath()

		return p.getProperty("java.class.path", null);
	
public static voidmain(java.lang.String[] argv)


	     
		System.out.println("System Properties:");
		System.out.println("java.class.path now = " + getClassPath());
		p.setProperty("java.class.path",
			 getClassPath() + ';" + "C:/jdk1.2/lib/tools.jar");
		System.out.println("java.class.path now = " + getClassPath());
		try {
			Class.forName("sun.tools.javap.JavaP");
		} catch (Exception e) {
			System.err.println(e);
			return;
		}
		System.out.println("Got it!!");