Class Which


  • public final class Which
    extends Object
    Finds an executable in the system environment
    • Method Detail

      • execute

        @Nullable
        public static @Nullable String execute​(@NotNull
                                               @NotNull String executableName)
        Find an executable in the system environment using `which`. Compatibility when the system is Windows by using the "WHERE" command.
        Parameters:
        executableName - name of the executable
        Returns:
        path