Tuesday, 26 August 2014

Get Java class path

Use "java.class.path" property to find directories and JAR archives containing class files.

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

Output
C:\Users\Documents\NetBeansProjects\recursion\build\classes


                                                             Home

No comments:

Post a Comment