Class JVMCommandLineToolkit

java.lang.Object
org.openjdk.jmc.common.jvm.JVMCommandLineToolkit

public class JVMCommandLineToolkit extends Object
  • Constructor Details

    • JVMCommandLineToolkit

      public JVMCommandLineToolkit()
  • Method Details

    • getMainClassOrJar

      public static String getMainClassOrJar(String commandLine)
      Parameters:
      commandLine -
      Returns:
      the class/jar that is being run.
    • getJavaCommandLine

      public static String getJavaCommandLine(String cmdLine)
      Removes jvm flags from full commandline Does not handle space in paths.
      Parameters:
      cmdLine - Full commandline of jvm
      Returns:
      Commandline with only main class or jar file, and args to the java application.