Search code examples
javadynamic-class-loaders

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


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


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.