Retrieving the classpath

Advertisement
Hi,
A question on retrieving the classpath:
I executed my BuildMSet java from the command line as follows:
C:\>java -classpath c:\project_source; build.BuildMSet
How can I read the classpath info within BuildMSet which is under execution.
Thanks,
SD
Advertisement

Replay

List all system properties:
System.getProperties().list(System.out);or
          Properties props = System.getProperties();
          Enumeration keys = props.keys();
          String key;
          while (keys.hasMoreElements()) {
               key = (String) keys.nextElement();
               System.out.println(key+":"+props.getProperty(key));
          }//get path property
System.out.println(System.getProperty("java.class.path"));