Skip to content

-Xbootclasspath

This Oracle® HotSpot™ option specifies the search path for bootstrap classes and resources. The default is to search for bootstrap classes and resources in the internal VM directories and .jar files. The option is recognized by the Eclipse OpenJ9™ VM.

Syntax

Limited to... Setting Effect
-Xbootclasspath:<path> Sets the search path for bootstrap classes and resources.
-Xbootclasspath/p:<path> Prepends the specified resources to the front of the bootstrap class path.
-Xbootclasspath/a:<path> Appends the specified resources to the end of the bootstrap class path.
where <path> represents directories and compressed or Java™ archive files separated with colons (:). On Windows™ systems, use a semicolon (;) as a separator.

Oracle advise that you should "not deploy applications that use this option to override a class in rt.jar, because this violates the JRE binary code license."