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.

@FunctionalInterface public interface RuntimeBuilder
Creates Java runtime.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createRuntime(AppImageLayout appImageLayout)
    Creates Java runtime in the given app image.
    static List<Path>
    Gets the default set of paths where to find Java modules.
  • Method Details

    • createRuntime

      void createRuntime(AppImageLayout appImageLayout) throws PackagerException
      Creates Java runtime in the given app image.
      Parameters:
      appImageLayout - the app image where to create Java runtime.
      Throws:
      PackagerException - if packaging error occurs
      Implementation Note:
      Java runtime should be created in the directory returned by AppImageLayout.runtimeDirectory() method called on the given app image layout object.
    • getDefaultModulePath

      static List<Path> getDefaultModulePath()
      Gets the default set of paths where to find Java modules.
      Returns:
      the default set of paths where to find Java modules