Class ModularRuntimeImage

java.lang.Object
org.apache.bcel.util.ModularRuntimeImage
All Implemented Interfaces:
Closeable, AutoCloseable

public class ModularRuntimeImage extends Object implements Closeable
Wraps a Java 9 JEP 220 modular runtime image. Requires the JRT NIO file system.
Since:
6.3
  • Constructor Details

    • ModularRuntimeImage

      Constructs a default instance.
    • ModularRuntimeImage

      public ModularRuntimeImage(String javaHome) throws IOException
      Constructs an instance using the JRT file system implementation from a specific Java Home.
      Parameters:
      javaHome - Path to a Java 9 or greater home.
      Throws:
      IOException - an I/O error occurs accessing the file system
  • Method Details