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