How class loading is done by using -Xbootclasspath/p:path?

dynamic-class-loaders, java

Solution

go to your command line and type java -X, to see the options available, -Xbootclasspath followed by path to comma seperated lists of jar files specified to prepend these classes before the standard jre classes. A use would be if you want to add patches affecting core runtime libraries.

Problem

I've seen -Xbootclasspath/p:path being used for loading class dynamically can you please elaborate and explain by providing example.

Original source