http://www.importnew.com/26269.html
import java.net.URL;
class test9
{
public static void main(String[] args){
System.out.println(System.getProperty("java.ext.dirs"));
URL[] urls = sun.misc.Launcher.getBootstrapClassPath().getURLs();
for (int i = 0; i < urls.length; i++)
{
System.out.println(urls[i].toExternalForm());
}
System.out.println(System.getProperty("java.class.path"));
}
C:Program Files (x86)Javajdk1.8.0_131jrelibext;C:WindowsSunJavalibext
file:/C:/Program%20Files%20(x86)/Java/jdk1.8.0_131/jre/lib/resources.jar file:/C:/Program%20Files%20(x86)/Java/jdk1.8.0_131/jre/lib/rt.jar file:/C:/Program%20Files%20(x86)/Java/jdk1.8.0_131/jre/lib/sunrsasign.jar file:/C:/Program%20Files%20(x86)/Java/jdk1.8.0_131/jre/lib/jsse.jar file:/C:/Program%20Files%20(x86)/Java/jdk1.8.0_131/jre/lib/jce.jar file:/C:/Program%20Files%20(x86)/Java/jdk1.8.0_131/jre/lib/charsets.jar file:/C:/Program%20Files%20(x86)/Java/jdk1.8.0_131/jre/lib/jfr.jar file:/C:/Program%20Files%20(x86)/Java/jdk1.8.0_131/jre/classes
.;C:Program Files (x86)Javajdk1.8.0_131lib;C:Program Files (x86)Javajdk1.8.0_131lib ools.jar