blob: 9e17cc30f4b13c717462887a74d56dbcb92951b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import sun.tools.java.*;
public class ClassPathTest {
public static void main(String args[]) {
ClassPath cp =
new ClassPath((String)System.getProperties().get("java.class.path"));
ClassFile cf = cp.getFile("ClassPathTest.class");
try {
System.out.println("PASSED: "+cp.toString() +" "+ cf.toString());
} catch (Exception e) {
System.out.println("FAILED: " + e.toString());
}
}
}
|