I have a classloader application that reads the system property sun.boot.class.path
But I've found in the JDK 9's release note that this property has been removed.
System.getProperty("sun.boot.class.path"); // In JDK 9/10 this returns null
But I still want to retrieve this property value in JDK 10. How can it be done?
I'm expecting a value like the following:
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes
FYI:
I don't want use the -Xbootclasspath
option. Just need the path value.