Class JimageClassBinder


  • public class JimageClassBinder
    extends java.lang.Object
    Constructs a platform ClassPath from the current JDK's jimage file using jrtfs.
    • Constructor Summary

      Constructors 
      Constructor Description
      JimageClassBinder​(com.google.common.collect.ImmutableMultimap<java.lang.String,​java.lang.String> packageMap, java.nio.file.Path modules)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ClassPath bind​(java.lang.String javaHome)
      Returns a platform classpath for the given JDK's jimage file.
      static ClassPath bindDefault()
      Returns a platform classpath for the host JDK's jimage file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JimageClassBinder

        public JimageClassBinder​(com.google.common.collect.ImmutableMultimap<java.lang.String,​java.lang.String> packageMap,
                                 java.nio.file.Path modules)
    • Method Detail

      • bindDefault

        public static ClassPath bindDefault()
                                     throws java.io.IOException
        Returns a platform classpath for the host JDK's jimage file.
        Throws:
        java.io.IOException
      • bind

        public static ClassPath bind​(java.lang.String javaHome)
                              throws java.io.IOException
        Returns a platform classpath for the given JDK's jimage file.
        Throws:
        java.io.IOException