Class JavaUtils

java.lang.Object
de.iip_ecosphere.platform.support.JavaUtils

public class JavaUtils extends Object
Java utils with based on more recent JDK libraries.
Author:
Holger Eichelberger, SSE
  • Field Details

    • binaryPathSupplier

      private static Supplier<String> binaryPathSupplier
  • Constructor Details

    • JavaUtils

      public JavaUtils()
  • Method Details

    • getJavaBinaryPath

      public static String getJavaBinaryPath(String dflt)
      Returns the path to the running Java binary.
      Parameters:
      dflt - the default value to return if the original value is unknown
      Returns:
      the path, may be dflt
    • getJavaBinaryPath

      public static String getJavaBinaryPath()
      Returns the path to the running Java binary.
      Returns:
      the path, may be null for unknown
    • getJavaPath

      public static String getJavaPath()
      Returns the path to the running JVM bin folder.
      Returns:
      the path, may be null for unknown