Get classpath using System class : Classpath « Class « Java






Get classpath using System class

  
public class Main {

  public static void main(String[] args) {
    System.out.println(System.getProperty("java.class.path"));
  }
}

   
    
  








Related examples in the same category

1.Returns a reference to a file with the specified name that is located somewhere on the classpath.
2.Lookup Classpath Files