Java Classpath Using System Class

Chapter: System Last Updated: 20-04-2016 15:16:03 UTC

Program:

            /* ............... START ............... */
                
public class JavaPrintClassPath {
	public static void main(String[] args) {

		String strClassPath = System.getProperty("java.class.path");

		System.out.println("Java Classpath :" + strClassPath);

	}
}
                /* ............... END ............... */
        

Notes:

  • System.getProperty("java.class.path") returns the classpath of my program.

Tags

Java Classpath, Java, System Class

Similar Programs Chapter Last Updated
Java Program To Run Application System 24-06-2017
Java System.getProperties() Example System 20-04-2016
Java Specification Version Using System Class System 03-08-2016
Operating System Using System Class In Java System 06-04-2016

1