Interface RuntimeBuilder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Creates Java runtime.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(AppImageLayout appImageLayout) Creates Java runtime in the given app image.Gets the default set of paths where jlink should look up for system Java modules.default booleanReturnstrueif "--strip-native-commands" was not used with jlink.
-
Method Details
-
create
Creates Java runtime in the given app image.- Parameters:
appImageLayout- the app image where to create Java runtime.- Implementation Note:
- Java runtime should be created in the directory returned by
AppImageLayout.runtimeDirectory()method called on the given app image layout object.
-
withNativeCommands
default boolean withNativeCommands()Returnstrueif "--strip-native-commands" was not used with jlink. Default implementation returnsfalse.- Returns:
trueif "--strip-native-commands" was not used with jlink
-
getDefaultModulePath
Gets the default set of paths where jlink should look up for system Java modules.These paths are for
jlinkcommand. Using them withModuleFinder.of(Path...)may not work as expected: attempt to find "java.base" module in these paths will fail.- Returns:
- the default set of paths where to find Java modules
-